project: Rev 202

This commit is contained in:
Owain van Brakel
2021-12-14 18:20:58 +01:00
parent e974585ce8
commit 7c7bf0901a
406 changed files with 39725 additions and 39842 deletions

View File

@@ -44,7 +44,7 @@ public class WorldMapData_1 extends AbstractWorldMapData {
int chunkY;
WorldMapData_1() {
} // L: 11
}
@ObfuscatedName("c")
@ObfuscatedSignature(
@@ -53,24 +53,24 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("init")
void init(Buffer var1) {
int var2 = var1.readUnsignedByte(); // L: 14
if (var2 != WorldMapID.field2741.value) { // L: 15
throw new IllegalStateException(""); // L: 16
int var2 = var1.readUnsignedByte();
if (var2 != WorldMapID.field2741.value) {
throw new IllegalStateException("");
} else {
super.minPlane = var1.readUnsignedByte(); // L: 18
super.planes = var1.readUnsignedByte(); // L: 19
super.regionXLow = var1.readUnsignedShort(); // L: 20
super.regionYLow = var1.readUnsignedShort(); // L: 21
this.chunkXLow = var1.readUnsignedByte(); // L: 22
this.chunkYLow = var1.readUnsignedByte(); // L: 23
super.regionX = var1.readUnsignedShort(); // L: 24
super.regionY = var1.readUnsignedShort(); // L: 25
this.chunkX = var1.readUnsignedByte(); // L: 26
this.chunkY = var1.readUnsignedByte(); // L: 27
super.groupId = var1.method7400(); // L: 28
super.fileId = var1.method7400(); // L: 29
super.minPlane = var1.readUnsignedByte();
super.planes = var1.readUnsignedByte();
super.regionXLow = var1.readUnsignedShort();
super.regionYLow = var1.readUnsignedShort();
this.chunkXLow = var1.readUnsignedByte();
this.chunkYLow = var1.readUnsignedByte();
super.regionX = var1.readUnsignedShort();
super.regionY = var1.readUnsignedShort();
this.chunkX = var1.readUnsignedByte();
this.chunkY = var1.readUnsignedByte();
super.groupId = var1.method7400();
super.fileId = var1.method7400();
}
} // L: 30
}
@ObfuscatedName("b")
@ObfuscatedSignature(
@@ -79,32 +79,32 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("readGeography")
void readGeography(Buffer var1) {
super.planes = Math.min(super.planes, 4); // L: 34
super.floorUnderlayIds = new short[1][64][64]; // L: 35
super.floorOverlayIds = new short[super.planes][64][64]; // L: 36
super.field2699 = new byte[super.planes][64][64]; // L: 37
super.field2706 = new byte[super.planes][64][64]; // L: 38
super.decorations = new WorldMapDecoration[super.planes][64][64][]; // L: 39
int var2 = var1.readUnsignedByte(); // L: 40
if (var2 != class231.field2735.value) { // L: 41
throw new IllegalStateException(""); // L: 42
super.planes = Math.min(super.planes, 4);
super.floorUnderlayIds = new short[1][64][64];
super.floorOverlayIds = new short[super.planes][64][64];
super.field2699 = new byte[super.planes][64][64];
super.field2706 = new byte[super.planes][64][64];
super.decorations = new WorldMapDecoration[super.planes][64][64][];
int var2 = var1.readUnsignedByte();
if (var2 != class231.field2735.value) {
throw new IllegalStateException("");
} else {
int var3 = var1.readUnsignedByte(); // L: 44
int var4 = var1.readUnsignedByte(); // L: 45
int var5 = var1.readUnsignedByte(); // L: 46
int var6 = var1.readUnsignedByte(); // L: 47
if (var3 == super.regionX && var4 == super.regionY && var5 == this.chunkX && var6 == this.chunkY) { // L: 48
for (int var7 = 0; var7 < 8; ++var7) { // L: 51
for (int var8 = 0; var8 < 8; ++var8) { // L: 52
this.readTile(var7 + this.chunkX * 8, var8 + this.chunkY * 8, var1); // L: 53
int var3 = var1.readUnsignedByte();
int var4 = var1.readUnsignedByte();
int var5 = var1.readUnsignedByte();
int var6 = var1.readUnsignedByte();
if (var3 == super.regionX && var4 == super.regionY && var5 == this.chunkX && var6 == this.chunkY) {
for (int var7 = 0; var7 < 8; ++var7) {
for (int var8 = 0; var8 < 8; ++var8) {
this.readTile(var7 + this.chunkX * 8, var8 + this.chunkY * 8, var1);
}
}
} else {
throw new IllegalStateException(""); // L: 49
throw new IllegalStateException("");
}
}
} // L: 56
}
@ObfuscatedName("p")
@ObfuscatedSignature(
@@ -113,7 +113,7 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("getChunkXLow")
int getChunkXLow() {
return this.chunkXLow; // L: 76
return this.chunkXLow;
}
@ObfuscatedName("m")
@@ -123,7 +123,7 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("getChunkYLow")
int getChunkYLow() {
return this.chunkYLow; // L: 80
return this.chunkYLow;
}
@ObfuscatedName("j")
@@ -133,7 +133,7 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("getChunkX")
int getChunkX() {
return this.chunkX; // L: 84
return this.chunkX;
}
@ObfuscatedName("w")
@@ -143,23 +143,23 @@ public class WorldMapData_1 extends AbstractWorldMapData {
)
@Export("getChunkY")
int getChunkY() {
return this.chunkY; // L: 88
return this.chunkY;
}
public boolean equals(Object var1) {
if (!(var1 instanceof WorldMapData_1)) { // L: 60
return false; // L: 61
if (!(var1 instanceof WorldMapData_1)) {
return false;
} else {
WorldMapData_1 var2 = (WorldMapData_1)var1; // L: 63
if (var2.regionX == super.regionX && super.regionY == var2.regionY) { // L: 64
return var2.chunkX == this.chunkX && this.chunkY == var2.chunkY; // L: 67
WorldMapData_1 var2 = (WorldMapData_1)var1;
if (var2.regionX == super.regionX && super.regionY == var2.regionY) {
return var2.chunkX == this.chunkX && this.chunkY == var2.chunkY;
} else {
return false; // L: 65
return false;
}
}
}
public int hashCode() {
return super.regionX | super.regionY << 8 | this.chunkX << 16 | this.chunkY << 24; // L: 72
return super.regionX | super.regionY << 8 | this.chunkX << 16 | this.chunkY << 24;
}
}