aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/example/ExampleMod.java')
-rw-r--r--src/main/java/com/example/ExampleMod.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java
index 0e6967a..c43c2c5 100644
--- a/src/main/java/com/example/ExampleMod.java
+++ b/src/main/java/com/example/ExampleMod.java
@@ -1,13 +1,22 @@
package com.example;
+import com.example.commands.Commands;
import net.minecraft.init.Blocks;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
+import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
@Mod(modid = "examplemod", version = "1.0.0")
public class ExampleMod {
+ public Commands commands;
+
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName());
}
+
+ @Mod.EventHandler
+ public void preinit(FMLPreInitializationEvent event) {
+ this.commands = new Commands();
+ }
}