summaryrefslogtreecommitdiff
path: root/src/main/java/lance5057/tDefense/TinkersDefense.java
diff options
context:
space:
mode:
authorLance5057 <Lance5057@gmail.com>2017-04-29 22:20:58 -0500
committerLance5057 <Lance5057@gmail.com>2017-04-29 22:20:58 -0500
commitb4b05403fda50307e2b35de91296ab9bb53c2baa (patch)
treeb69a17f58673e8d4ac5d9da6503608649da4cc28 /src/main/java/lance5057/tDefense/TinkersDefense.java
parentf692d8983ee8787843d874ae1aa329c1439e3223 (diff)
Updated to TiCo 2.6.3
Added Zweihander Partially added Sheathe Partially added Crest Mount Partially added materials
Diffstat (limited to 'src/main/java/lance5057/tDefense/TinkersDefense.java')
-rw-r--r--src/main/java/lance5057/tDefense/TinkersDefense.java27
1 files changed, 19 insertions, 8 deletions
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<IRecipe> recipes = CraftingManager.getInstance()
.getRecipeList();
final Iterator<IRecipe> 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