From b4b05403fda50307e2b35de91296ab9bb53c2baa Mon Sep 17 00:00:00 2001 From: Lance5057 Date: Sat, 29 Apr 2017 22:20:58 -0500 Subject: Updated to TiCo 2.6.3 Added Zweihander Partially added Sheathe Partially added Crest Mount Partially added materials --- .../java/lance5057/tDefense/TinkersDefense.java | 27 +++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'src/main/java/lance5057/tDefense/TinkersDefense.java') diff --git a/src/main/java/lance5057/tDefense/TinkersDefense.java b/src/main/java/lance5057/tDefense/TinkersDefense.java index bf58ba3..e75fdf2 100644 --- a/src/main/java/lance5057/tDefense/TinkersDefense.java +++ b/src/main/java/lance5057/tDefense/TinkersDefense.java @@ -3,6 +3,7 @@ package lance5057.tDefense; import java.util.Iterator; import java.util.List; +import lance5057.tDefense.baubles.BaublesBase; import lance5057.tDefense.core.CoreBase; import lance5057.tDefense.core.materials.TDMaterials; import lance5057.tDefense.core.tools.TDTools; @@ -29,14 +30,17 @@ public class TinkersDefense { private static int modGuiIndex = 0; public static final int GUI_CREST_INV = modGuiIndex++; - public static final int GUI_ANVIL_INV = modGuiIndex++; - public static final int GUI_GUIDEBOOK = modGuiIndex++; + //public static final int GUI_ANVIL_INV = modGuiIndex++; + //public static final int GUI_GUIDEBOOK = modGuiIndex++; @Instance(Reference.MOD_ID) public static TinkersDefense instance = new TinkersDefense(); + + PacketHandler phandler = new PacketHandler(); HolidayBase holiday; ModuleBase core; + ModuleBase baubles; // public static TDEventHandler TDevents; @@ -117,6 +121,8 @@ public class TinkersDefense { public void preInit(FMLPreInitializationEvent e) { core = new CoreBase(); holiday = new HolidayBase(); + baubles = new BaublesBase(); + mats = new TDMaterials(); tools = new TDTools(); config = new TD_Config(e); @@ -315,9 +321,10 @@ public class TinkersDefense { // mods.preInit(); // proxy.registerRenderers(); - core.preInit(); - holiday.preInit(); + core.preInit(e); + holiday.preInit(e); tools.preInit(e); + baubles.preInit(e); proxy.preInit(); } @@ -326,16 +333,20 @@ public class TinkersDefense { // I reject your moss and substitute my own! if (config.mossEnabled || config.mossHard) { - } + final List recipes = CraftingManager.getInstance() .getRecipeList(); final Iterator recipe = recipes.iterator(); + } - core.init(); - holiday.init(); + core.init(e); + holiday.init(e); mats.setupMaterials(e); tools.init(e); - proxy.Init(); + baubles.init(e); + proxy.init(); + + phandler.init(); } @EventHandler -- cgit v1.2.3