42 lines
1.0 KiB
Java
42 lines
1.0 KiB
Java
package openonyx.movement;
|
|
|
|
import net.minecraft.util.Vec3;
|
|
|
|
public record SimulatedTickState(Vec3 pos, double fallDistance, Vec3 velocity, boolean onGround, boolean clipLedged) {
|
|
public static String decrypt(String string) {
|
|
String string1 = string;
|
|
int l = --3 << --3 ^ 2;
|
|
int m = 112 ^ 1 << 1;
|
|
String string2;
|
|
int o = (string2 = string1).length();
|
|
char[] d = new char[o];
|
|
boolean bl = true;
|
|
int j;
|
|
int n = j = o - 1;
|
|
char[] c = d;
|
|
byte b = 14;
|
|
l = n;
|
|
int i = m;
|
|
|
|
while (l >= 0) {
|
|
m = j;
|
|
int k = string2.charAt(j);
|
|
j--;
|
|
c[m] = (char)(k ^ i);
|
|
if (j < 0) {
|
|
break;
|
|
}
|
|
|
|
k = j--;
|
|
c[k] = (char)(string2.charAt(k) ^ b);
|
|
l = j;
|
|
}
|
|
|
|
return new String(c);
|
|
}
|
|
|
|
public SimulatedTickState(SimulatedPlayer simulatedPlayer) {
|
|
this(simulatedPlayer.getVec3(), simulatedPlayer.L(), simulatedPlayer.getVec32(), simulatedPlayer.k(), simulatedPlayer.d());
|
|
}
|
|
}
|