diff --git a/gradle.properties b/gradle.properties index 6b9e4d6..6ef1f3d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,7 +30,7 @@ apiPackage = # Specify the configuration file for Forge's access transformers here. I must be placed into /src/main/resources/META-INF/ # Example value: mymodid_at.cfg -accessTransformersFile = mymodid_at.cfg +accessTransformersFile = # Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled! usesMixins = true diff --git a/src/main/java/com/myname/mymodid/CommonProxy.java b/src/main/java/com/myname/mymodid/CommonProxy.java index 165825c..5c5ef7d 100644 --- a/src/main/java/com/myname/mymodid/CommonProxy.java +++ b/src/main/java/com/myname/mymodid/CommonProxy.java @@ -1,9 +1,6 @@ package com.myname.mymodid; import cpw.mods.fml.common.event.*; -import net.minecraft.block.material.Material; -import net.minecraft.client.gui.GuiScreenBook; -import net.minecraft.init.Blocks; public class CommonProxy { @@ -23,14 +20,7 @@ public class CommonProxy { // postInit "Handle interaction with other mods, complete your setup based on this." public void postInit(FMLPostInitializationEvent event) { - // Access originally package-private subclass - GuiScreenBook.NextPageButton button = null; - // Access originally private field - Material air = Blocks.air.blockMaterial; - - // Access originally protected method - Blocks.air.disableStats(); } public void serverAboutToStart(FMLServerAboutToStartEvent event) { diff --git a/src/main/resources/META-INF/mymodid_at.cfg b/src/main/resources/META-INF/mymodid_at.cfg deleted file mode 100644 index 1e7afd5..0000000 --- a/src/main/resources/META-INF/mymodid_at.cfg +++ /dev/null @@ -1,17 +0,0 @@ -# Override visibility of Vanilla Minecraft code only! It will not work on mods! - -# Warning: Whenever you change this file you must run 'setupDecompWorkspace' again and afterwards reimport the gradle project! - -# https://mcforge.readthedocs.io/en/latest/advanced/accesstransformers/ - -# Classes -# -public net.minecraft.client.gui.GuiScreenBook$NextPageButton - -# Fields -# -public net.minecraft.block.Block field_149764_J # blockMaterial - -# Methods -# () -public net.minecraft.block.Block func_149649_H()Lnet.minecraft.block.Block; # disableStats