project: 184 (#1670)

* 184

* checkstyle
This commit is contained in:
Owain van Brakel
2019-09-28 18:05:04 +02:00
committed by Kyle
parent 6f3152456f
commit 42acd14658
341 changed files with 90582 additions and 90740 deletions

View File

@@ -1,280 +1,280 @@
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("h")
@Implements("WorldMapSection0")
public class WorldMapSection0 implements WorldMapSection {
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1037587117
)
@Export("oldZ")
int oldZ;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1930448807
)
@Export("newZ")
int newZ;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 686443425
)
@Export("oldX")
int oldX;
@ObfuscatedName("u")
@ObfuscatedGetter(
intValue = -542760431
)
@Export("oldY")
int oldY;
@ObfuscatedName("r")
@ObfuscatedGetter(
intValue = 543857047
)
@Export("newX")
int newX;
@ObfuscatedName("p")
@ObfuscatedGetter(
intValue = -386033045
)
@Export("newY")
int newY;
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = -1004209975
)
@Export("oldChunkXLow")
int oldChunkXLow;
@ObfuscatedName("m")
@ObfuscatedGetter(
intValue = 645797773
)
@Export("oldChunkYLow")
int oldChunkYLow;
@ObfuscatedName("y")
@ObfuscatedGetter(
intValue = -478007643
)
@Export("oldChunkXHigh")
int oldChunkXHigh;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 940484663
)
@Export("oldChunkYHigh")
int oldChunkYHigh;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1473412629
)
@Export("newChunkXLow")
int newChunkXLow;
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = 1495103355
)
@Export("newChunkYLow")
int newChunkYLow;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = -1947965675
)
@Export("newChunkXHigh")
int newChunkXHigh;
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = 627288657
)
@Export("newChunkYHigh")
int newChunkYHigh;
WorldMapSection0() {
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lac;I)V",
garbageValue = "2098672163"
)
@Export("expandBounds")
public void expandBounds(WorldMapArea var1) {
if (var1.regionLowX > this.newX) {
var1.regionLowX = this.newX;
}
if (var1.regionHighX < this.newX) {
var1.regionHighX = this.newX;
}
if (var1.regionLowY > this.newY) {
var1.regionLowY = this.newY;
}
if (var1.regionHighY < this.newY) {
var1.regionHighY = this.newY;
}
}
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(IIII)Z",
garbageValue = "-327883108"
)
@Export("containsCoord")
public boolean containsCoord(int var1, int var2, int var3) {
if (var1 >= this.oldZ && var1 < this.oldZ + this.newZ) {
return var2 >= (this.oldX << 6) + (this.oldChunkXLow << 3) && var2 <= (this.oldX << 6) + (this.oldChunkXHigh << 3) + 7 && var3 >= (this.oldY << 6) + (this.oldChunkYLow << 3) && var3 <= (this.oldY << 6) + (this.oldChunkYHigh << 3) + 7;
} else {
return false;
}
}
@ObfuscatedName("v")
@ObfuscatedSignature(
signature = "(III)Z",
garbageValue = "-1535371561"
)
@Export("containsPosition")
public boolean containsPosition(int var1, int var2) {
return var1 >= (this.newX << 6) + (this.newChunkXLow << 3) && var1 <= (this.newX << 6) + (this.newChunkXHigh << 3) + 7 && var2 >= (this.newY << 6) + (this.newChunkYLow << 3) && var2 <= (this.newY << 6) + (this.newChunkYHigh << 3) + 7;
}
@ObfuscatedName("u")
@ObfuscatedSignature(
signature = "(IIII)[I",
garbageValue = "-1322751923"
)
@Export("getBorderTileLengths")
public int[] getBorderTileLengths(int var1, int var2, int var3) {
if (!this.containsCoord(var1, var2, var3)) {
return null;
} else {
int[] var4 = new int[]{this.newX * 64 - this.oldX * 64 + var2 + (this.newChunkXLow * 8 - this.oldChunkXLow * 8), var3 + (this.newY * 64 - this.oldY * 64) + (this.newChunkYLow * 8 - this.oldChunkYLow * 8)};
return var4;
}
}
@ObfuscatedName("r")
@ObfuscatedSignature(
signature = "(III)Lhb;",
garbageValue = "1439979703"
)
@Export("coord")
public Coord coord(int var1, int var2) {
if (!this.containsPosition(var1, var2)) {
return null;
} else {
int var3 = this.oldX * 64 - this.newX * 64 + (this.oldChunkXLow * 8 - this.newChunkXLow * 8) + var1;
int var4 = this.oldY * 64 - this.newY * 64 + var2 + (this.oldChunkYLow * 8 - this.newChunkYLow * 8);
return new Coord(this.oldZ, var3, var4);
}
}
@ObfuscatedName("p")
@ObfuscatedSignature(
signature = "(Lkl;B)V",
garbageValue = "-99"
)
@Export("read")
public void read(Buffer var1) {
this.oldZ = var1.readUnsignedByte();
this.newZ = var1.readUnsignedByte();
this.oldX = var1.readUnsignedShort();
this.oldChunkXLow = var1.readUnsignedByte();
this.oldChunkXHigh = var1.readUnsignedByte();
this.oldY = var1.readUnsignedShort();
this.oldChunkYLow = var1.readUnsignedByte();
this.oldChunkYHigh = var1.readUnsignedByte();
this.newX = var1.readUnsignedShort();
this.newChunkXLow = var1.readUnsignedByte();
this.newChunkXHigh = var1.readUnsignedByte();
this.newY = var1.readUnsignedShort();
this.newChunkYLow = var1.readUnsignedByte();
this.newChunkYHigh = var1.readUnsignedByte();
this.postRead();
}
@ObfuscatedName("q")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "1221797110"
)
@Export("postRead")
void postRead() {
}
@ObfuscatedName("r")
@ObfuscatedSignature(
signature = "(II)Z",
garbageValue = "1193049266"
)
public static boolean method249(int var0) {
return (var0 >> 29 & 1) != 0;
}
@ObfuscatedName("fh")
@ObfuscatedSignature(
signature = "(Ljava/lang/String;I)V",
garbageValue = "1698246852"
)
@Export("doCheat")
static final void doCheat(String var0) {
if (var0.equalsIgnoreCase("toggleroof")) {
AbstractArchive.clientPreferences.roofsHidden = !AbstractArchive.clientPreferences.roofsHidden;
Language.savePreferences();
if (AbstractArchive.clientPreferences.roofsHidden) {
class210.addGameMessage(99, "", "Roofs are now all hidden");
} else {
class210.addGameMessage(99, "", "Roofs will only be removed selectively");
}
}
if (var0.equalsIgnoreCase("displayfps")) {
Client.displayFps = !Client.displayFps;
}
if (var0.equalsIgnoreCase("renderself")) {
Client.renderSelf = !Client.renderSelf;
}
if (var0.equalsIgnoreCase("mouseovertext")) {
Client.showMouseOverText = !Client.showMouseOverText;
}
if (Client.staffModLevel >= 2) {
if (var0.equalsIgnoreCase("errortest")) {
throw new RuntimeException();
}
if (var0.equalsIgnoreCase("showcoord")) {
Tiles.worldMap.showCoord = !Tiles.worldMap.showCoord;
}
if (var0.equalsIgnoreCase("fpson")) {
Client.displayFps = true;
}
if (var0.equalsIgnoreCase("fpsoff")) {
Client.displayFps = false;
}
if (var0.equalsIgnoreCase("gc")) {
System.gc();
}
if (var0.equalsIgnoreCase("clientdrop")) {
MouseRecorder.method1213();
}
}
PacketBufferNode var1 = InterfaceParent.getPacketBufferNode(ClientPacket.field2201, Client.packetWriter.isaacCipher);
var1.packetBuffer.writeByte(var0.length() + 1);
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
Client.packetWriter.addNode(var1);
}
}
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("h")
@Implements("WorldMapSection0")
public class WorldMapSection0 implements WorldMapSection {
@ObfuscatedName("z")
@ObfuscatedGetter(
intValue = 1037587117
)
@Export("oldZ")
int oldZ;
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1930448807
)
@Export("newZ")
int newZ;
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = 686443425
)
@Export("oldX")
int oldX;
@ObfuscatedName("u")
@ObfuscatedGetter(
intValue = -542760431
)
@Export("oldY")
int oldY;
@ObfuscatedName("r")
@ObfuscatedGetter(
intValue = 543857047
)
@Export("newX")
int newX;
@ObfuscatedName("p")
@ObfuscatedGetter(
intValue = -386033045
)
@Export("newY")
int newY;
@ObfuscatedName("q")
@ObfuscatedGetter(
intValue = -1004209975
)
@Export("oldChunkXLow")
int oldChunkXLow;
@ObfuscatedName("m")
@ObfuscatedGetter(
intValue = 645797773
)
@Export("oldChunkYLow")
int oldChunkYLow;
@ObfuscatedName("y")
@ObfuscatedGetter(
intValue = -478007643
)
@Export("oldChunkXHigh")
int oldChunkXHigh;
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = 940484663
)
@Export("oldChunkYHigh")
int oldChunkYHigh;
@ObfuscatedName("c")
@ObfuscatedGetter(
intValue = 1473412629
)
@Export("newChunkXLow")
int newChunkXLow;
@ObfuscatedName("b")
@ObfuscatedGetter(
intValue = 1495103355
)
@Export("newChunkYLow")
int newChunkYLow;
@ObfuscatedName("o")
@ObfuscatedGetter(
intValue = -1947965675
)
@Export("newChunkXHigh")
int newChunkXHigh;
@ObfuscatedName("a")
@ObfuscatedGetter(
intValue = 627288657
)
@Export("newChunkYHigh")
int newChunkYHigh;
WorldMapSection0() {
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lac;I)V",
garbageValue = "2098672163"
)
@Export("expandBounds")
public void expandBounds(WorldMapArea var1) {
if (var1.regionLowX > this.newX) {
var1.regionLowX = this.newX;
}
if (var1.regionHighX < this.newX) {
var1.regionHighX = this.newX;
}
if (var1.regionLowY > this.newY) {
var1.regionLowY = this.newY;
}
if (var1.regionHighY < this.newY) {
var1.regionHighY = this.newY;
}
}
@ObfuscatedName("n")
@ObfuscatedSignature(
signature = "(IIII)Z",
garbageValue = "-327883108"
)
@Export("containsCoord")
public boolean containsCoord(int var1, int var2, int var3) {
if (var1 >= this.oldZ && var1 < this.oldZ + this.newZ) {
return var2 >= (this.oldX << 6) + (this.oldChunkXLow << 3) && var2 <= (this.oldX << 6) + (this.oldChunkXHigh << 3) + 7 && var3 >= (this.oldY << 6) + (this.oldChunkYLow << 3) && var3 <= (this.oldY << 6) + (this.oldChunkYHigh << 3) + 7;
} else {
return false;
}
}
@ObfuscatedName("v")
@ObfuscatedSignature(
signature = "(III)Z",
garbageValue = "-1535371561"
)
@Export("containsPosition")
public boolean containsPosition(int var1, int var2) {
return var1 >= (this.newX << 6) + (this.newChunkXLow << 3) && var1 <= (this.newX << 6) + (this.newChunkXHigh << 3) + 7 && var2 >= (this.newY << 6) + (this.newChunkYLow << 3) && var2 <= (this.newY << 6) + (this.newChunkYHigh << 3) + 7;
}
@ObfuscatedName("u")
@ObfuscatedSignature(
signature = "(IIII)[I",
garbageValue = "-1322751923"
)
@Export("getBorderTileLengths")
public int[] getBorderTileLengths(int var1, int var2, int var3) {
if (!this.containsCoord(var1, var2, var3)) {
return null;
} else {
int[] var4 = new int[]{this.newX * 64 - this.oldX * 64 + var2 + (this.newChunkXLow * 8 - this.oldChunkXLow * 8), var3 + (this.newY * 64 - this.oldY * 64) + (this.newChunkYLow * 8 - this.oldChunkYLow * 8)};
return var4;
}
}
@ObfuscatedName("r")
@ObfuscatedSignature(
signature = "(III)Lhb;",
garbageValue = "1439979703"
)
@Export("coord")
public Coord coord(int var1, int var2) {
if (!this.containsPosition(var1, var2)) {
return null;
} else {
int var3 = this.oldX * 64 - this.newX * 64 + (this.oldChunkXLow * 8 - this.newChunkXLow * 8) + var1;
int var4 = this.oldY * 64 - this.newY * 64 + var2 + (this.oldChunkYLow * 8 - this.newChunkYLow * 8);
return new Coord(this.oldZ, var3, var4);
}
}
@ObfuscatedName("p")
@ObfuscatedSignature(
signature = "(Lkl;B)V",
garbageValue = "-99"
)
@Export("read")
public void read(Buffer var1) {
this.oldZ = var1.readUnsignedByte();
this.newZ = var1.readUnsignedByte();
this.oldX = var1.readUnsignedShort();
this.oldChunkXLow = var1.readUnsignedByte();
this.oldChunkXHigh = var1.readUnsignedByte();
this.oldY = var1.readUnsignedShort();
this.oldChunkYLow = var1.readUnsignedByte();
this.oldChunkYHigh = var1.readUnsignedByte();
this.newX = var1.readUnsignedShort();
this.newChunkXLow = var1.readUnsignedByte();
this.newChunkXHigh = var1.readUnsignedByte();
this.newY = var1.readUnsignedShort();
this.newChunkYLow = var1.readUnsignedByte();
this.newChunkYHigh = var1.readUnsignedByte();
this.postRead();
}
@ObfuscatedName("q")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "1221797110"
)
@Export("postRead")
void postRead() {
}
@ObfuscatedName("r")
@ObfuscatedSignature(
signature = "(II)Z",
garbageValue = "1193049266"
)
public static boolean method249(int var0) {
return (var0 >> 29 & 1) != 0;
}
@ObfuscatedName("fh")
@ObfuscatedSignature(
signature = "(Ljava/lang/String;I)V",
garbageValue = "1698246852"
)
@Export("doCheat")
static final void doCheat(String var0) {
if (var0.equalsIgnoreCase("toggleroof")) {
AbstractArchive.clientPreferences.roofsHidden = !AbstractArchive.clientPreferences.roofsHidden;
Language.savePreferences();
if (AbstractArchive.clientPreferences.roofsHidden) {
class210.addGameMessage(99, "", "Roofs are now all hidden");
} else {
class210.addGameMessage(99, "", "Roofs will only be removed selectively");
}
}
if (var0.equalsIgnoreCase("displayfps")) {
Client.displayFps = !Client.displayFps;
}
if (var0.equalsIgnoreCase("renderself")) {
Client.renderSelf = !Client.renderSelf;
}
if (var0.equalsIgnoreCase("mouseovertext")) {
Client.showMouseOverText = !Client.showMouseOverText;
}
if (Client.staffModLevel >= 2) {
if (var0.equalsIgnoreCase("errortest")) {
throw new RuntimeException();
}
if (var0.equalsIgnoreCase("showcoord")) {
Tiles.worldMap.showCoord = !Tiles.worldMap.showCoord;
}
if (var0.equalsIgnoreCase("fpson")) {
Client.displayFps = true;
}
if (var0.equalsIgnoreCase("fpsoff")) {
Client.displayFps = false;
}
if (var0.equalsIgnoreCase("gc")) {
System.gc();
}
if (var0.equalsIgnoreCase("clientdrop")) {
MouseRecorder.method1213();
}
}
PacketBufferNode var1 = InterfaceParent.getPacketBufferNode(ClientPacket.field2201, Client.packetWriter.isaacCipher);
var1.packetBuffer.writeByte(var0.length() + 1);
var1.packetBuffer.writeStringCp1252NullTerminated(var0);
Client.packetWriter.addNode(var1);
}
}