Remove access transformer example

This commit is contained in:
Johann Bernhardt committed 2021-11-07 01:05:32 +01:00
1 parent c4b1866d72
commit 2031cb38dc
3 files changed
+1 -28

No files matched your search

+1 -1
View File
@@ -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
@@ -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) {
@@ -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
# <access modifier> <fully qualified class name>
public net.minecraft.client.gui.GuiScreenBook$NextPageButton
# Fields
# <access modifier> <fully qualified class name> <field name>
public net.minecraft.block.Block field_149764_J # blockMaterial
# Methods
# <access modifier> <fully qualified class name> <method name>(<parameter types>)<return type>
public net.minecraft.block.Block func_149649_H()Lnet.minecraft.block.Block; # disableStats