Changes

Update to 1.17
Line 5: Line 5:  
== Visibility ==
 
== Visibility ==
   −
Here's a quick rundown of the visibility options offered by Java 8:
+
Here's a quick rundown of the visibility options offered by Java 16:
    
* <code>public</code> visible to all classes inside and outside its package
 
* <code>public</code> visible to all classes inside and outside its package
Line 22: Line 22:  
A random example to understand the syntax:
 
A random example to understand the syntax:
   −
<code ->public net.minecraft.util.palette.IResizeCallback # makes IResizeCallback public</code>
+
<code ->public net.minecraft.world.level.chunk.PaletteResize # makes PaletteResize public</code>
    
If a valid entry is found on a line, Forge will look into the bytecode of the file where that member is defined, and change its access to whatever you desire it to be.
 
If a valid entry is found on a line, Forge will look into the bytecode of the file where that member is defined, and change its access to whatever you desire it to be.
Line 33: Line 33:  
An example of this in place:
 
An example of this in place:
   −
<code ->public-f net.minecraft.util.palette.IResizeCallback # makes IResizeCallback public</code>
+
<code ->public-f net.minecraft.world.level.chunk.PaletteResize # makes PaletteResize public</code>
    
Note: You can also use this to ''add'' a final keyword via <code>+f</code>. This is never recommended however, and should be avoided at all costs unless absolutely necessary.
 
Note: You can also use this to ''add'' a final keyword via <code>+f</code>. This is never recommended however, and should be avoided at all costs unless absolutely necessary.