Port Injector to main layout
Adds deobfuscator Adds injected-client Adds injector-plugin Adds runescape-client Replaces RL's apis Small bug with sprites atm, will be resolved soon. tired af. Builds, probably
This commit is contained in:
27
runescape-client/src/main/java/SoftWrapper.java
Normal file
27
runescape-client/src/main/java/SoftWrapper.java
Normal file
@@ -0,0 +1,27 @@
|
||||
import java.lang.ref.SoftReference;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
|
||||
@ObfuscatedName("ef")
|
||||
@Implements("SoftWrapper")
|
||||
public class SoftWrapper extends Wrapper {
|
||||
@ObfuscatedName("m")
|
||||
@Export("ref")
|
||||
SoftReference ref;
|
||||
|
||||
SoftWrapper(Object var1, int var2) {
|
||||
super(var2);
|
||||
this.ref = new SoftReference(var1);
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
Object get() {
|
||||
return this.ref.get();
|
||||
}
|
||||
|
||||
@ObfuscatedName("f")
|
||||
boolean isSoft() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user