Search in sources :

Example 36 with ObfuscatedSignature

use of net.runelite.mapping.ObfuscatedSignature in project runelite by runelite.

the class FriendManager method method1668.

@ObfuscatedName("g")
@ObfuscatedSignature(signature = "(Ljava/lang/String;I)V", garbageValue = "1293478071")
final void method1668(String var1) {
    if (var1 != null) {
        Name var2 = new Name(var1, this.field1247);
        if (var2.method5450()) {
            if (this.field1250.method5345(var2)) {
                class132.method2786();
                PacketNode var3 = FaceNormal.method3078(ClientPacket.field2379, Client.field902.field1475);
                var3.packetBuffer.putByte(Projectile.getLength(var1));
                var3.packetBuffer.putString(var1);
                Client.field902.method2036(var3);
            }
            class190.method3487();
        }
    }
}
Also used : ObfuscatedName(net.runelite.mapping.ObfuscatedName) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 37 with ObfuscatedSignature

use of net.runelite.mapping.ObfuscatedSignature in project runelite by runelite.

the class FriendManager method method1690.

@ObfuscatedName("y")
@ObfuscatedSignature(signature = "(Ljava/lang/String;I)V", garbageValue = "640825907")
final void method1690(String var1) {
    if (var1 != null) {
        Name var2 = new Name(var1, this.field1247);
        if (var2.method5450()) {
            if (this.field1249.method5345(var2)) {
                class132.method2786();
                PacketNode var3 = FaceNormal.method3078(ClientPacket.field2399, Client.field902.field1475);
                var3.packetBuffer.putByte(Projectile.getLength(var1));
                var3.packetBuffer.putString(var1);
                Client.field902.method2036(var3);
            }
            Iterator var5 = class95.messages.iterator();
            while (var5.hasNext()) {
                MessageNode var4 = (MessageNode) var5.next();
                var4.method1107();
            }
            if (class33.clanMemberManager != null) {
                class33.clanMemberManager.method5469();
            }
        }
    }
}
Also used : Iterator(java.util.Iterator) ObfuscatedName(net.runelite.mapping.ObfuscatedName) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 38 with ObfuscatedSignature

use of net.runelite.mapping.ObfuscatedSignature in project runelite by runelite.

the class GameEngine method method921.

@ObfuscatedName("s")
@ObfuscatedSignature(signature = "(I)V", garbageValue = "2120795827")
final void method921() {
    Canvas var1 = this.canvas;
    var1.removeKeyListener(KeyFocusListener.keyboard);
    var1.removeFocusListener(KeyFocusListener.keyboard);
    KeyFocusListener.field610 = -1;
    class66.method1096(this.canvas);
    if (this.mouseWheelHandler != null) {
        this.mouseWheelHandler.removeFrom(this.canvas);
    }
    this.replaceCanvas();
    Canvas var2 = this.canvas;
    var2.setFocusTraversalKeysEnabled(false);
    var2.addKeyListener(KeyFocusListener.keyboard);
    var2.addFocusListener(KeyFocusListener.keyboard);
    Spotanim.method4799(this.canvas);
    if (this.mouseWheelHandler != null) {
        this.mouseWheelHandler.addTo(this.canvas);
    }
    this.method893();
}
Also used : Canvas(java.awt.Canvas) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 39 with ObfuscatedSignature

use of net.runelite.mapping.ObfuscatedSignature in project runelite by runelite.

the class GameEngine method method885.

@ObfuscatedName("y")
@ObfuscatedSignature(signature = "(I)V", garbageValue = "2114903280")
void method885() {
    int var1 = this.field660;
    int var2 = this.field657;
    int var3 = this.field669 - Sequence.canvasWidth - var1;
    int var4 = this.field670 - class45.canvasHeight - var2;
    if (var1 > 0 || var3 > 0 || var2 > 0 || var4 > 0) {
        try {
            Container var5 = this.container();
            int var6 = 0;
            int var7 = 0;
            if (var5 == this.frame) {
                Insets var8 = this.frame.getInsets();
                var6 = var8.left;
                var7 = var8.top;
            }
            Graphics var10 = var5.getGraphics();
            var10.setColor(Color.black);
            if (var1 > 0) {
                var10.fillRect(var6, var7, var1, this.field670);
            }
            if (var2 > 0) {
                var10.fillRect(var6, var7, this.field669, var2);
            }
            if (var3 > 0) {
                var10.fillRect(var6 + this.field669 - var3, var7, var3, this.field670);
            }
            if (var4 > 0) {
                var10.fillRect(var6, var7 + this.field670 - var4, this.field669, var4);
            }
        } catch (Exception var9) {
            ;
        }
    }
}
Also used : Graphics(java.awt.Graphics) Container(java.awt.Container) Insets(java.awt.Insets) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Example 40 with ObfuscatedSignature

use of net.runelite.mapping.ObfuscatedSignature in project runelite by runelite.

the class Buffer method encryptRsa.

@ObfuscatedName("aj")
@ObfuscatedSignature(signature = "(Ljava/math/BigInteger;Ljava/math/BigInteger;B)V", garbageValue = "-23")
@Export("encryptRsa")
public void encryptRsa(BigInteger var1, BigInteger var2) {
    int var3 = this.offset;
    this.offset = 0;
    byte[] var4 = new byte[var3];
    this.readBytes(var4, 0, var3);
    BigInteger var5 = new BigInteger(var4);
    BigInteger var6 = var5.modPow(var1, var2);
    byte[] var7 = var6.toByteArray();
    this.offset = 0;
    this.putShort(var7.length);
    this.putBytes(var7, 0, var7.length);
}
Also used : BigInteger(java.math.BigInteger) Export(net.runelite.mapping.Export) ObfuscatedSignature(net.runelite.mapping.ObfuscatedSignature) ObfuscatedName(net.runelite.mapping.ObfuscatedName)

Aggregations

ObfuscatedSignature (net.runelite.mapping.ObfuscatedSignature)72 ObfuscatedName (net.runelite.mapping.ObfuscatedName)71 Iterator (java.util.Iterator)30 Export (net.runelite.mapping.Export)22 IOException (java.io.IOException)10 LinkedList (java.util.LinkedList)10 List (java.util.List)6 Container (java.awt.Container)5 Insets (java.awt.Insets)5 HashSet (java.util.HashSet)5 JSObject (netscape.javascript.JSObject)5 URL (java.net.URL)4 HashMap (java.util.HashMap)4 ByteArrayInputStream (java.io.ByteArrayInputStream)3 URI (java.net.URI)3 Canvas (java.awt.Canvas)2 Graphics (java.awt.Graphics)2 BufferedImage (java.awt.image.BufferedImage)2 PixelGrabber (java.awt.image.PixelGrabber)2 File (java.io.File)2