aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/technus/tectech/loader/MainLoader.java3
-rw-r--r--src/main/java/com/github/technus/tectech/loader/thing/ComponentLoader.java26
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() {
+
+ }
+}