Properly serialize and deserialize the Dungeon rooms

This commit is contained in:
WayofTime 2016-08-21 13:17:04 -04:00
parent 9b64e2a2f6
commit 61b11a88bf
9 changed files with 176 additions and 38 deletions

View file

@ -9,11 +9,10 @@ import net.minecraft.world.WorldServer;
import net.minecraft.world.gen.structure.template.PlacementSettings;
import net.minecraft.world.gen.structure.template.Template;
import net.minecraft.world.gen.structure.template.TemplateManager;
import WayofTime.bloodmagic.api.Constants;
public class DungeonStructure
{
final ResourceLocation resource;
public ResourceLocation resource;
public DungeonStructure(ResourceLocation resource)
{
@ -28,7 +27,6 @@ public class DungeonStructure
MinecraftServer minecraftserver = world.getMinecraftServer();
TemplateManager templatemanager = world.getStructureTemplateManager();
ResourceLocation resource = new ResourceLocation(Constants.Mod.MODID, "Corridor1");
Template template = templatemanager.func_189942_b(minecraftserver, resource);
if (template == null)