diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/example/ExampleMod.java | 3 | ||||
-rw-r--r-- | src/main/resources/accesstransformer.cfg | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java index c18b591..2ce1671 100644 --- a/src/main/java/com/example/ExampleMod.java +++ b/src/main/java/com/example/ExampleMod.java @@ -1,5 +1,6 @@ package com.example; +import net.minecraft.client.renderer.GlStateManager; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @@ -9,5 +10,7 @@ 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()); } } diff --git a/src/main/resources/accesstransformer.cfg b/src/main/resources/accesstransformer.cfg new file mode 100644 index 0000000..1a7a2b3 --- /dev/null +++ b/src/main/resources/accesstransformer.cfg @@ -0,0 +1,2 @@ + +public net.minecraft.client.renderer.GlStateManager$Color |