Upload files to "src/openonyx/input"
This commit is contained in:
1 parent
a352ff2926
commit
8fe58141d2
4 files changed
+207
No files matched your search
@@ -0,0 +1,61 @@
|
||||
package openonyx.input;
|
||||
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
||||
public record KeyInput(int key, int scancode, int modifiers, char typedChar) {
|
||||
public boolean i() {
|
||||
return this.D();
|
||||
}
|
||||
|
||||
public boolean D() {
|
||||
return GuiScreen.isCtrlKeyDown() && GuiScreen.isCtrlCharTyped(this.typedChar);
|
||||
}
|
||||
|
||||
public boolean d() {
|
||||
return GuiScreen.isShiftKeyDown();
|
||||
}
|
||||
|
||||
public boolean L() {
|
||||
return GuiScreen.isAltKeyDown();
|
||||
}
|
||||
|
||||
public static String decrypt(String string) {
|
||||
String string1 = string;
|
||||
int l = 5 >> 1 << 3 ^ 4;
|
||||
int m = 4 << 4 ^ 2 << 2 ^ 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 = 41;
|
||||
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 KeyInput(int i) {
|
||||
this(i, 0, 0, '\u0000');
|
||||
}
|
||||
|
||||
public KeyInput(int i, int j, int k) {
|
||||
this(i, j, k, '\u0000');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user