how do i stop making castles every time i go to the beach i make a castle every time i open blender i model castles every time i play chess i castle i just cant stop making castles dude
205 lines
5.1 KiB
Java
205 lines
5.1 KiB
Java
import java.io.File;
|
|
import java.io.RandomAccessFile;
|
|
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("cj")
|
|
@Implements("GraphicsObject")
|
|
public final class GraphicsObject extends Renderable {
|
|
@ObfuscatedName("t")
|
|
@ObfuscatedGetter(
|
|
intValue = 910565899
|
|
)
|
|
@Export("loginBoxCenter")
|
|
static int loginBoxCenter;
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedGetter(
|
|
intValue = -1864450081
|
|
)
|
|
@Export("id")
|
|
int id;
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedGetter(
|
|
intValue = 505711675
|
|
)
|
|
@Export("cycleStart")
|
|
int cycleStart;
|
|
@ObfuscatedName("d")
|
|
@ObfuscatedGetter(
|
|
intValue = -1431922107
|
|
)
|
|
@Export("plane")
|
|
int plane;
|
|
@ObfuscatedName("c")
|
|
@ObfuscatedGetter(
|
|
intValue = -1205773017
|
|
)
|
|
@Export("x")
|
|
int x;
|
|
@ObfuscatedName("y")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Ljs;"
|
|
)
|
|
@Export("sequenceDefinition")
|
|
SequenceDefinition sequenceDefinition;
|
|
@ObfuscatedName("h")
|
|
@ObfuscatedGetter(
|
|
intValue = -2064393717
|
|
)
|
|
@Export("y")
|
|
int y;
|
|
@ObfuscatedName("z")
|
|
@ObfuscatedGetter(
|
|
intValue = -1686573995
|
|
)
|
|
@Export("height")
|
|
int height;
|
|
@ObfuscatedName("e")
|
|
@ObfuscatedGetter(
|
|
intValue = -1959033933
|
|
)
|
|
@Export("frame")
|
|
int frame;
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedGetter(
|
|
intValue = 230901949
|
|
)
|
|
@Export("frameCycle")
|
|
int frameCycle;
|
|
@ObfuscatedName("l")
|
|
@Export("isFinished")
|
|
boolean isFinished;
|
|
|
|
GraphicsObject(int var1, int var2, int var3, int var4, int var5, int var6, int var7) {
|
|
this.frame = 0; // L: 16
|
|
this.frameCycle = 0; // L: 17
|
|
this.isFinished = false; // L: 18
|
|
this.id = var1; // L: 21
|
|
this.plane = var2;
|
|
this.x = var3;
|
|
this.y = var4;
|
|
this.height = var5;
|
|
this.cycleStart = var7 + var6;
|
|
int var8 = AbstractUserComparator.SpotAnimationDefinition_get(this.id).sequence; // L: 27
|
|
if (var8 != -1) {
|
|
this.isFinished = false;
|
|
this.sequenceDefinition = InterfaceParent.SequenceDefinition_get(var8);
|
|
} else {
|
|
this.isFinished = true;
|
|
}
|
|
|
|
}
|
|
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(II)V",
|
|
garbageValue = "-83388372"
|
|
)
|
|
@Export("advance")
|
|
final void advance(int var1) {
|
|
if (!this.isFinished) {
|
|
this.frameCycle += var1;
|
|
|
|
while (this.frameCycle > this.sequenceDefinition.frameLengths[this.frame]) { // L: 38
|
|
this.frameCycle -= this.sequenceDefinition.frameLengths[this.frame]; // L: 39
|
|
++this.frame; // L: 40
|
|
if (this.frame >= this.sequenceDefinition.frameIds.length) {
|
|
this.isFinished = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("q")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(B)Lef;",
|
|
garbageValue = "127"
|
|
)
|
|
@Export("getModel")
|
|
protected final Model getModel() {
|
|
SpotAnimationDefinition var1 = AbstractUserComparator.SpotAnimationDefinition_get(this.id); // L: 49
|
|
Model var2;
|
|
if (!this.isFinished) { // L: 51
|
|
var2 = var1.getModel(this.frame);
|
|
} else {
|
|
var2 = var1.getModel(-1); // L: 52
|
|
}
|
|
|
|
return var2 == null ? null : var2; // L: 53
|
|
}
|
|
|
|
@ObfuscatedName("n")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(II)Z",
|
|
garbageValue = "-531258942"
|
|
)
|
|
public static boolean method2153(int var0) {
|
|
return var0 >= WorldMapDecorationType.field2765.id && var0 <= WorldMapDecorationType.field2750.id || var0 == WorldMapDecorationType.field2760.id;
|
|
}
|
|
|
|
@ObfuscatedName("v")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(Ljava/lang/String;B)Ljava/io/File;",
|
|
garbageValue = "0"
|
|
)
|
|
@Export("getFile")
|
|
static File getFile(String var0) {
|
|
if (!FileSystem.FileSystem_hasPermissions) { // L: 22
|
|
throw new RuntimeException("");
|
|
} else {
|
|
File var1 = (File)FileSystem.FileSystem_cacheFiles.get(var0); // L: 23
|
|
if (var1 != null) { // L: 24
|
|
return var1;
|
|
} else {
|
|
File var2 = new File(FileSystem.FileSystem_cacheDir, var0); // L: 25
|
|
RandomAccessFile var3 = null; // L: 26
|
|
|
|
try {
|
|
File var4 = new File(var2.getParent()); // L: 28
|
|
if (!var4.exists()) { // L: 29
|
|
throw new RuntimeException("");
|
|
} else {
|
|
var3 = new RandomAccessFile(var2, "rw"); // L: 30
|
|
int var5 = var3.read(); // L: 31
|
|
var3.seek(0L); // L: 32
|
|
var3.write(var5); // L: 33
|
|
var3.seek(0L); // L: 34
|
|
var3.close(); // L: 35
|
|
FileSystem.FileSystem_cacheFiles.put(var0, var2); // L: 36
|
|
return var2; // L: 37
|
|
}
|
|
} catch (Exception var8) {
|
|
try {
|
|
if (var3 != null) { // L: 41
|
|
var3.close(); // L: 42
|
|
var3 = null; // L: 43
|
|
}
|
|
} catch (Exception var7) { // L: 46
|
|
}
|
|
|
|
throw new RuntimeException(); // L: 48
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@ObfuscatedName("ai")
|
|
@ObfuscatedSignature(
|
|
descriptor = "(ILhd;ZI)V",
|
|
garbageValue = "956374800"
|
|
)
|
|
static void method2154(int var0, Coord var1, boolean var2) {
|
|
WorldMapArea var3 = WorldMapSection0.getWorldMap().getMapArea(var0); // L: 3935
|
|
int var4 = UserComparator9.localPlayer.plane; // L: 3936
|
|
int var5 = (UserComparator9.localPlayer.x >> 7) + GrandExchangeOfferNameComparator.baseX; // L: 3937
|
|
int var6 = (UserComparator9.localPlayer.y >> 7) + NetCache.baseY; // L: 3938
|
|
Coord var7 = new Coord(var4, var5, var6); // L: 3939
|
|
WorldMapSection0.getWorldMap().method6536(var3, var7, var1, var2); // L: 3940
|
|
} // L: 3941
|
|
}
|