Clean up a lot of obfuscation helpers and impls
This fixes a bug with obfuscation helpers for attack cooldown But every other change should stay the same. Cleaning up a lot of helpers that pointed to already unobfuscated items. Also adds final to many of the obfhelpers to assist with inlining. This is pretty much a patch maintenance
This commit is contained in:
@@ -2771,15 +2771,24 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
this.t = chunkstatus == null ? 0 : chunkstatus.c() + 1;
|
||||
}
|
||||
|
||||
+ public int getStatusIndex() { return c(); } // Paper - OBFHELPER
|
||||
+ public final int getStatusIndex() { return c(); } // Paper - OBFHELPER
|
||||
public int c() {
|
||||
return this.t;
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class ChunkStatus {
|
||||
return this.s;
|
||||
}
|
||||
|
||||
- public ChunkStatus getPreviousStatus() { return this.e(); } // Paper - OBFHELPER
|
||||
+ public final ChunkStatus getPreviousStatus() { return this.e(); } // Paper - OBFHELPER
|
||||
public ChunkStatus e() {
|
||||
return this.u;
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class ChunkStatus {
|
||||
return this.w.doWork(this, worldserver, definedstructuremanager, lightenginethreaded, function, ichunkaccess);
|
||||
}
|
||||
|
||||
+ public int getNeighborRadius() { return this.f(); } // Paper - OBFHELPER
|
||||
+ public final int getNeighborRadius() { return this.f(); } // Paper - OBFHELPER
|
||||
public int f() {
|
||||
return this.x;
|
||||
}
|
||||
@@ -2787,7 +2796,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
return this.z;
|
||||
}
|
||||
|
||||
+ public boolean isAtLeastStatus(ChunkStatus chunkstatus) { return b(chunkstatus); } // Paper - OBFHELPER
|
||||
+ public final boolean isAtLeastStatus(ChunkStatus chunkstatus) { return b(chunkstatus); } // Paper - OBFHELPER
|
||||
public boolean b(ChunkStatus chunkstatus) {
|
||||
return this.c() >= chunkstatus.c();
|
||||
}
|
||||
@@ -3060,7 +3069,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
private boolean updatingChunksModified;
|
||||
@@ -0,0 +0,0 @@ public class PlayerChunkMap extends IChunkLoader implements PlayerChunk.d {
|
||||
public final WorldLoadListener worldLoadListener;
|
||||
public final PlayerChunkMap.a chunkDistanceManager; public final PlayerChunkMap.a getChunkMapDistanceManager() { return this.chunkDistanceManager; } // Paper - OBFHELPER
|
||||
public final PlayerChunkMap.a chunkDistanceManager;
|
||||
private final AtomicInteger u;
|
||||
- private final DefinedStructureManager definedStructureManager;
|
||||
+ public final DefinedStructureManager definedStructureManager; // Paper - private -> public
|
||||
|
||||
Reference in New Issue
Block a user