diff options
author | Technus <daniel112092@gmail.com> | 2018-05-27 09:31:48 +0200 |
---|---|---|
committer | Technus <daniel112092@gmail.com> | 2018-05-27 09:31:48 +0200 |
commit | c47fbe1664b292df2b7361c8af9092a358111711 (patch) | |
tree | f31c9ec446f3b6f058e84a7735829296f625b231 /src/main | |
parent | a66912a98979f1299ee35704068a62931c3ba227 (diff) | |
download | GT5-Unofficial-c47fbe1664b292df2b7361c8af9092a358111711.tar.gz GT5-Unofficial-c47fbe1664b292df2b7361c8af9092a358111711.tar.bz2 GT5-Unofficial-c47fbe1664b292df2b7361c8af9092a358111711.zip |
Add component loader.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/github/technus/tectech/loader/MainLoader.java | 3 | ||||
-rw-r--r-- | src/main/java/com/github/technus/tectech/loader/thing/ComponentLoader.java | 26 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/com/github/technus/tectech/loader/MainLoader.java b/src/main/java/com/github/technus/tectech/loader/MainLoader.java index 8a90be4975..83a1832bc1 100644 --- a/src/main/java/com/github/technus/tectech/loader/MainLoader.java +++ b/src/main/java/com/github/technus/tectech/loader/MainLoader.java @@ -11,6 +11,7 @@ import com.github.technus.tectech.loader.gui.CreativeTabTecTech; import com.github.technus.tectech.loader.gui.ModGuiHandler; import com.github.technus.tectech.loader.mechanics.ElementalLoader; import com.github.technus.tectech.loader.recipe.RecipeLoader; +import com.github.technus.tectech.loader.thing.ComponentLoader; import com.github.technus.tectech.loader.thing.MachineLoader; import com.github.technus.tectech.loader.thing.ThingsLoader; import com.github.technus.tectech.thing.casing.TT_Container_Casings; @@ -76,6 +77,8 @@ public final class MainLoader { }catch (Throwable t){ LOGGER.error("Loading textures...",t); } + + new ComponentLoader(); } public static void load() { diff --git a/src/main/java/com/github/technus/tectech/loader/thing/ComponentLoader.java b/src/main/java/com/github/technus/tectech/loader/thing/ComponentLoader.java new file mode 100644 index 0000000000..39b42c1249 --- /dev/null +++ b/src/main/java/com/github/technus/tectech/loader/thing/ComponentLoader.java @@ -0,0 +1,26 @@ +package com.github.technus.tectech.loader.thing; + +import gregtech.api.enums.Materials; +import gregtech.api.interfaces.IMaterialHandler; + +public class ComponentLoader implements IMaterialHandler { + public ComponentLoader(){ + Materials.add(this); + } + + @Override + public void onComponentInit() { + //example + //OrePrefixes.ring.enableComponent(Materials.RedAlloy); + } + + @Override + public void onComponentIteration(Materials materials) { + + } + + @Override + public void onMaterialsInit() { + + } +} |