From c1dabe37d8b43d90a682edde797df9b278ec4a47 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 8 Aug 2024 12:44:50 +0200 Subject: Add access transformers --- src/main/java/com/example/ExampleMod.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/com/example') 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()); } } -- cgit