90 lines
2.2 KiB
Java
90 lines
2.2 KiB
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("bz")
|
|
@Implements("ItemContainer")
|
|
public class ItemContainer extends Node {
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lnk;"
|
|
)
|
|
@Export("itemContainers")
|
|
static NodeHashTable itemContainers;
|
|
@ObfuscatedName("a")
|
|
@Export("SpriteBuffer_spritePalette")
|
|
public static int[] SpriteBuffer_spritePalette;
|
|
@ObfuscatedName("r")
|
|
@Export("userHomeDirectory")
|
|
public static String userHomeDirectory;
|
|
@ObfuscatedName("c")
|
|
@Export("ids")
|
|
int[] ids;
|
|
@ObfuscatedName("m")
|
|
@Export("quantities")
|
|
int[] quantities;
|
|
|
|
static {
|
|
itemContainers = new NodeHashTable(32);
|
|
}
|
|
|
|
ItemContainer() {
|
|
this.ids = new int[]{-1};
|
|
this.quantities = new int[]{0};
|
|
}
|
|
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(Lkk;Lkk;B)Z",
|
|
garbageValue = "25"
|
|
)
|
|
public static boolean method2025(AbstractArchive var0, AbstractArchive var1) {
|
|
WorldMapElement.WorldMapElement_archive = var1;
|
|
if (!var0.isFullyLoaded()) {
|
|
return false;
|
|
} else {
|
|
Username.WorldMapElement_count = var0.getGroupFileCount(35);
|
|
WorldMapElement.WorldMapElement_cached = new WorldMapElement[Username.WorldMapElement_count];
|
|
|
|
for (int var2 = 0; var2 < Username.WorldMapElement_count; ++var2) {
|
|
byte[] var3 = var0.takeFile(35, var2);
|
|
WorldMapElement.WorldMapElement_cached[var2] = new WorldMapElement(var2);
|
|
if (var3 != null) {
|
|
WorldMapElement.WorldMapElement_cached[var2].decode(new Buffer(var3));
|
|
WorldMapElement.WorldMapElement_cached[var2].method2846();
|
|
}
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("g")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(II)I",
|
|
garbageValue = "-569852185"
|
|
)
|
|
public static int method2041(int var0) {
|
|
--var0;
|
|
var0 |= var0 >>> 1;
|
|
var0 |= var0 >>> 2;
|
|
var0 |= var0 >>> 4;
|
|
var0 |= var0 >>> 8;
|
|
var0 |= var0 >>> 16;
|
|
return var0 + 1;
|
|
}
|
|
|
|
@ObfuscatedName("g")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(I)V",
|
|
garbageValue = "-361869455"
|
|
)
|
|
static void method2029() {
|
|
Messages.Messages_channels.clear();
|
|
Messages.Messages_hashTable.clear();
|
|
Messages.Messages_queue.clear();
|
|
Messages.Messages_count = 0;
|
|
}
|
|
}
|