Upload files to "src/openonyx/core"

This commit is contained in:
winterflyt committed 2026-11-30 05:46:56 +02:00
1 parent fcde80f1c4
commit 7286c890fe
3 files changed
+121

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package openonyx.core;
import net.minecraft.client.Minecraft;
public interface MinecraftAccess {
Minecraft mc = Minecraft.getMinecraft();
}
+41
View File
@@ -0,0 +1,41 @@
package openonyx.core;
public final class ObfuscationMarker {
public static String decrypt(String string) {
String string1 = string;
int l = (5 >> 1 ^ 5) << 3 ^ 1;
int m = 112 ^ 2 << 2 ^ 3;
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 = 20;
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);
}
private ObfuscationMarker() {
}
public static void qpwoeirzn(int i) {
}
}
+73
View File
@@ -0,0 +1,73 @@
package openonyx.core;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import meteordevelopment.orbit.EventBus;
import meteordevelopment.orbit.IEventBus;
import openonyx.commands.CommandManager;
import openonyx.connection.AccountManager;
import openonyx.events.PerformanceDiagnostics;
import openonyx.features.ModuleManager;
import openonyx.features.combat.BedTracker;
import openonyx.misc.ConfigManager;
import openonyx.movement.MovementPredictor;
import openonyx.protocol.RotationHandler;
import openonyx.utilities.ContainerTracker;
import openonyx.utilities.HotbarManager;
import openonyx.utilities.PlayerUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class OnyxClient {
public static ModuleManager moduleManager;
public static CommandManager commandManager;
public static final IEventBus EVENT_BUS = new EventBus();
private static final OnyxClient INSTANCE = new OnyxClient();
public static AccountManager accountManager;
public static final Logger LOGGER = LogManager.getLogger("onyx");
public static ConfigManager configManager;
public static String L() {
String string;
return (string = System.getProperty("onyx.user")) != null && !string.isEmpty() ? string : "dev";
}
public void d() {
EVENT_BUS.registerLambdaFactory("openonyx", (method, class_) -> {
Object[] objects = new Object[2];
boolean bl = true;
objects[0] = class_;
objects[1] = MethodHandles.lookup();
return (Lookup)method.invoke(null, objects);
});
moduleManager = new ModuleManager();
EVENT_BUS.subscribe(moduleManager);
EVENT_BUS.subscribe(PlayerUtils.INSTANCE);
EVENT_BUS.subscribe(HotbarManager.INSTANCE);
EVENT_BUS.subscribe(BedTracker.INSTANCE);
EVENT_BUS.subscribe(ContainerTracker.INSTANCE);
EVENT_BUS.subscribe(RotationHandler.INSTANCE);
EVENT_BUS.subscribe(MovementPredictor.INSTANCE);
accountManager = new AccountManager();
accountManager.d();
commandManager = new CommandManager();
configManager = new ConfigManager();
configManager.i();
PerformanceDiagnostics.d();
LOGGER.info("onyx client initialised");
}
public static OnyxClient getInstance() {
return INSTANCE;
}
public void L() {
if (accountManager != null) {
accountManager.L();
}
if (configManager != null) {
configManager.L();
}
}
}