mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 13:30:30 -07:00
Moved source to rt4 package so external code can depend on it
This commit is contained in:
parent
dc6deb9151
commit
153d8569b5
624 changed files with 1253 additions and 7 deletions
45
client/src/main/java/rt4/Static171.java
Normal file
45
client/src/main/java/rt4/Static171.java
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
package rt4;
|
||||
|
||||
import java.util.Random;
|
||||
import org.openrs2.deob.annotation.OriginalArg;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
public final class Static171 {
|
||||
|
||||
@OriginalMember(owner = "client!ni", name = "h", descriptor = "I")
|
||||
public static int anInt4153;
|
||||
|
||||
@OriginalMember(owner = "client!ni", name = "n", descriptor = "Lclient!sm;")
|
||||
public static Class139 aClass139_1 = new Class139();
|
||||
|
||||
@OriginalMember(owner = "client!ni", name = "a", descriptor = "(ILclient!na;)I")
|
||||
public static int method3218(@OriginalArg(1) JagString arg0) {
|
||||
if (WorldMap.labels == null || arg0.length() == 0) {
|
||||
return -1;
|
||||
}
|
||||
for (@Pc(20) int local20 = 0; local20 < WorldMap.labels.anInt5074; local20++) {
|
||||
if (WorldMap.labels.aClass100Array153[local20].method3140(Static101.aClass100_538, Static197.aClass100_872).method3142(arg0)) {
|
||||
return local20;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@OriginalMember(owner = "client!ni", name = "a", descriptor = "(BILjava/util/Random;)I")
|
||||
public static int method3219(@OriginalArg(1) int arg0, @OriginalArg(2) Random arg1) {
|
||||
if (arg0 <= 0) {
|
||||
throw new IllegalArgumentException();
|
||||
} else if (Static209.method3702(arg0)) {
|
||||
return (int) (((long) arg1.nextInt() & 0xFFFFFFFFL) * (long) arg0 >> 32);
|
||||
} else {
|
||||
@Pc(38) int local38 = Integer.MIN_VALUE - (int) (4294967296L % (long) arg0);
|
||||
@Pc(41) int local41;
|
||||
do {
|
||||
local41 = arg1.nextInt();
|
||||
} while (local38 <= local41);
|
||||
return Static39.method990(local41, arg0);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue