rs-client: Cleanup (#1087)
* rs-client: name SpriteBuffer * rs-client: (re)name spritebuffer methods * rs-client/deob: Add missed @Export's, make updatemappings fix this next time * rs-client: run intellij redundant else inspection * rs-client: invert some script interpreter if's * deob: checkstyle fixes * rs-client: SpriteBuffer_loadSprite -> SpriteBuffer_bufferFile
This commit is contained in:
@@ -81,9 +81,8 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
public boolean containsCoord(int var1, int var2, int var3) {
|
||||
if (var1 >= this.minPlane && var1 < this.planes + this.minPlane) {
|
||||
return var2 >> 6 == this.regionStartX && var3 >> 6 == this.regionStartY;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@@ -105,10 +104,9 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
public int[] getBorderTileLengths(int var1, int var2, int var3) {
|
||||
if (!this.containsCoord(var1, var2, var3)) {
|
||||
return null;
|
||||
} else {
|
||||
int[] var4 = new int[]{this.regionEndX * 64 - this.regionStartX * 64 + var2, var3 + (this.regionEndY * 64 - this.regionStartY * 64)};
|
||||
return var4;
|
||||
}
|
||||
int[] var4 = new int[]{this.regionEndX * 64 - this.regionStartX * 64 + var2, var3 + (this.regionEndY * 64 - this.regionStartY * 64)};
|
||||
return var4;
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@@ -120,11 +118,10 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
public Coord coord(int var1, int var2) {
|
||||
if (!this.containsPosition(var1, var2)) {
|
||||
return null;
|
||||
} else {
|
||||
int var3 = this.regionStartX * 64 - this.regionEndX * 64 + var1;
|
||||
int var4 = this.regionStartY * 64 - this.regionEndY * 64 + var2;
|
||||
return new Coord(this.minPlane, var3, var4);
|
||||
}
|
||||
int var3 = this.regionStartX * 64 - this.regionEndX * 64 + var1;
|
||||
int var4 = this.regionStartY * 64 - this.regionEndY * 64 + var2;
|
||||
return new Coord(this.minPlane, var3, var4);
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@@ -220,11 +217,9 @@ public class WorldMapSection1 implements WorldMapSection {
|
||||
|
||||
if (!var4) {
|
||||
throw new NumberFormatException();
|
||||
} else {
|
||||
return var5;
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException("" + var1);
|
||||
return var5;
|
||||
}
|
||||
throw new IllegalArgumentException("" + var1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user