aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
diff options
context:
space:
mode:
authornopo <noahogno@gmail.com>2022-08-28 16:06:41 +1000
committerLinnea Gräf <nea@nea.moe>2024-08-08 12:47:39 +0200
commit85bc2dcafb781e0b6e8b3cc91a7efafd630ae419 (patch)
treefe3b4245e2ca0b6b7a5804b84286c49628951808 /src/main/java/com/example/ExampleMod.java
parentc1dabe37d8b43d90a682edde797df9b278ec4a47 (diff)
downloadForge1.8.9Template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.tar.gz
Forge1.8.9Template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.tar.bz2
Forge1.8.9Template-85bc2dcafb781e0b6e8b3cc91a7efafd630ae419.zip
Added 1.12.2 support1.12
Diffstat (limited to 'src/main/java/com/example/ExampleMod.java')
-rw-r--r--src/main/java/com/example/ExampleMod.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java
index 2ce1671..fc9dd0d 100644
--- a/src/main/java/com/example/ExampleMod.java
+++ b/src/main/java/com/example/ExampleMod.java
@@ -9,8 +9,7 @@ import net.minecraftforge.fml.common.event.FMLInitializationEvent;
public class ExampleMod {
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
- System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName());
- // Below is a demonstration of an access-transformed class access.
- System.out.println("Color State: " + new GlStateManager.Color());
+ System.out.println("Dirt: " + Blocks.DIRT.getTranslationKey());
+ System.out.println("Color State: " + new GlStateManager.Color());
}
}