aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
diff options
context:
space:
mode:
authoringle <inglettronald@gmail.com>2022-09-23 03:49:56 -0500
committeringle <inglettronald@gmail.com>2022-09-23 03:49:56 -0500
commit033de65a180b64fc645036d142589f57956ea263 (patch)
tree301fcca8a63348313f66193932c60f6c19c95024 /src/main/java/com/example/ExampleMod.java
parentcfcdcda458b2fe9fbe33bb81759dfd4e4fb3bcc0 (diff)
downloadDulkirMod-033de65a180b64fc645036d142589f57956ea263.tar.gz
DulkirMod-033de65a180b64fc645036d142589f57956ea263.tar.bz2
DulkirMod-033de65a180b64fc645036d142589f57956ea263.zip
Nothing works yet :+1:
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();
+ }
}