commit
d3d4a988eb
774 files changed
+120915
No files matched your search
@@ -0,0 +1,197 @@
|
||||
package dev.zprestige.prestige.engine;
|
||||
|
||||
import dev.zprestige.prestige.ui.DevCmd;
|
||||
import dev.zprestige.prestige.ui.bridge.Bridge;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
|
||||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.client.gui.screen.world.CreateWorldScreen;
|
||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||
import net.minecraft.client.util.ScreenshotRecorder;
|
||||
|
||||
/**
|
||||
* Dev/test driver for the game hooks. Inactive unless -Dprestige.engine.cmd=<file> is set (gradle: -PengineCmd=<file>).
|
||||
* The file is polled every client tick; its lines are queued and executed one per tick:
|
||||
* <pre>
|
||||
* wait <ticks> report listeners [OwnerSimpleName]
|
||||
* loadtargets enable|disable|toggle <module>
|
||||
* set <module>|<setting>|<value> get <module>|<setting> modstate <module>
|
||||
* newworld <name> world <name> server <command> (integrated server command, no cheats needed)
|
||||
* shot <file> screen exit
|
||||
* </pre>
|
||||
*/
|
||||
public final class EngineDev implements ClientModInitializer {
|
||||
private static final String CMD = System.getProperty("prestige.engine.cmd");
|
||||
private static final List<String> QUEUE = new ArrayList<>();
|
||||
private static int waitTicks, newWorldStage;
|
||||
private static String newWorldName;
|
||||
private static long reportEvery = Long.getLong("prestige.engine.report", 0L) * 20L, ticks;
|
||||
|
||||
@Override public void onInitializeClient() {
|
||||
if (CMD == null && reportEvery == 0) return;
|
||||
ClientTickEvents.END_CLIENT_TICK.register(EngineDev::tick);
|
||||
System.out.println("[Engine] dev driver active: " + CMD);
|
||||
}
|
||||
|
||||
private static void log(String s) { System.out.println("[Engine] " + s); }
|
||||
|
||||
static void tick(MinecraftClient mc) {
|
||||
try {
|
||||
ticks++;
|
||||
if (reportEvery > 0 && ticks % reportEvery == 0) log(EngineState.details());
|
||||
if (CMD == null) return;
|
||||
Path p = Path.of(CMD);
|
||||
if (Files.exists(p)) { QUEUE.addAll(Files.readAllLines(p)); Files.delete(p); }
|
||||
if (newWorldStage > 0) { newWorld(mc); return; }
|
||||
if (waitTicks > 0) { waitTicks--; return; }
|
||||
if (QUEUE.isEmpty()) return;
|
||||
String l = QUEUE.remove(0).trim();
|
||||
if (l.isEmpty() || l.startsWith("#")) return;
|
||||
run(mc, l);
|
||||
} catch (Throwable t) {
|
||||
log("command failed: " + t);
|
||||
t.printStackTrace(System.out);
|
||||
}
|
||||
}
|
||||
|
||||
private static void run(MinecraftClient mc, String line) throws Exception {
|
||||
String cmd = line.contains(" ") ? line.substring(0, line.indexOf(' ')) : line;
|
||||
String arg = line.length() > cmd.length() ? line.substring(cmd.length() + 1).trim() : "";
|
||||
switch (cmd) {
|
||||
case "wait" -> waitTicks = Integer.parseInt(arg);
|
||||
case "report" -> log(EngineState.details());
|
||||
case "listeners" -> {
|
||||
String text = DevCmd.listeners();
|
||||
if (!arg.isEmpty()) {
|
||||
StringBuilder sb = new StringBuilder("LISTENERS owned by " + arg + ":");
|
||||
for (String s : text.split("\n")) if (s.contains(arg) && s.startsWith(" ")) sb.append("\n").append(s);
|
||||
text = sb.toString();
|
||||
}
|
||||
log(text);
|
||||
}
|
||||
case "loadtargets" -> {
|
||||
ClassLoader cl = EngineDev.class.getClassLoader();
|
||||
List<String> missing = new ArrayList<>();
|
||||
var in = EngineDev.class.getClassLoader().getResourceAsStream("prestige-engine/targets.named.list");
|
||||
for (String t : new String(in.readAllBytes()).split("\\R")) {
|
||||
if (t.isBlank()) continue;
|
||||
try { Class.forName(t.trim(), false, cl); } catch (Throwable e) { missing.add(t + " (" + e + ")"); }
|
||||
}
|
||||
log("loadtargets: transformed=" + EngineState.transformed.size() + " failed=" + missing);
|
||||
}
|
||||
case "enable", "disable", "toggle" -> {
|
||||
Bridge.LiveModule m = Bridge.byName(arg);
|
||||
if (m == null) { log("no such module: " + arg); return; }
|
||||
boolean target = cmd.equals("toggle") ? !m.enabled() : cmd.equals("enable");
|
||||
m.setEnabled(target);
|
||||
log("module " + m.name + " enabled=" + m.enabled());
|
||||
}
|
||||
case "set" -> {
|
||||
String[] a = arg.split("\\|", 3);
|
||||
Bridge.LiveModule m = Bridge.byName(a[0]);
|
||||
Bridge.LiveSetting s = m == null ? null : m.setting(a[1]);
|
||||
if (s == null) { log("no such setting: " + arg); return; }
|
||||
Object cur = s.value(), v;
|
||||
if (cur instanceof Boolean) v = Boolean.parseBoolean(a[2]);
|
||||
else if (cur instanceof Integer) v = Integer.parseInt(a[2]);
|
||||
else if (cur instanceof Float) v = Float.parseFloat(a[2]);
|
||||
else if (cur instanceof Double) v = Double.parseDouble(a[2]);
|
||||
else v = a[2];
|
||||
s.set(v);
|
||||
log("set " + a[0] + "." + a[1] + " " + cur + " -> " + s.value() + " (" + s.type + ")");
|
||||
}
|
||||
case "get" -> {
|
||||
String[] a = arg.split("\\|", 2);
|
||||
Bridge.LiveModule m = Bridge.byName(a[0]);
|
||||
if (m == null) { log("no such module: " + a[0]); return; }
|
||||
if (a.length == 1) {
|
||||
StringBuilder sb = new StringBuilder(m.name + " enabled=" + m.enabled() + " settings:");
|
||||
for (Bridge.LiveSetting s : m.settings()) sb.append("\n ").append(s.name).append(" = ").append(s.value()).append(" [").append(s.type).append("]");
|
||||
log(sb.toString());
|
||||
} else {
|
||||
Bridge.LiveSetting s = m.setting(a[1]);
|
||||
log(a[0] + "." + a[1] + " = " + (s == null ? "<none>" : s.value()));
|
||||
}
|
||||
}
|
||||
case "modstate" -> {
|
||||
Bridge.LiveModule m = Bridge.byName(arg);
|
||||
if (m == null) { log("no such module: " + arg); return; }
|
||||
String owner = m.handle.getClass().getSimpleName();
|
||||
int n = 0;
|
||||
for (String s : DevCmd.listeners().split("\n")) if (s.startsWith(" ") && s.contains(owner)) n++;
|
||||
log("modstate " + m.name + " class=" + owner + " enabled=" + m.enabled() + " eventTypesWithListener=" + n
|
||||
+ " world=" + (mc.world != null));
|
||||
}
|
||||
case "server" -> {
|
||||
var server = mc.getServer();
|
||||
if (server == null) { log("no integrated server"); return; }
|
||||
server.execute(() -> server.getCommandManager().parseAndExecute(server.getCommandSource(), arg));
|
||||
log("server command: " + arg);
|
||||
}
|
||||
case "newworld" -> { newWorldName = arg.isEmpty() ? "engine-test" : arg; newWorldStage = 1; }
|
||||
case "world" -> {
|
||||
mc.createIntegratedServerLoader().start(arg, () -> log("world load cancelled/failed"));
|
||||
log("loading world " + arg);
|
||||
}
|
||||
case "screen" -> log("screen=" + (mc.currentScreen == null ? null : mc.currentScreen.getClass().getName()) + " world=" + (mc.world != null)
|
||||
+ " player=" + (mc.player != null));
|
||||
case "shot" -> {
|
||||
Path out = Path.of(arg).toAbsolutePath();
|
||||
Files.createDirectories(out.getParent());
|
||||
ScreenshotRecorder.takeScreenshot(mc.getFramebuffer(), img -> {
|
||||
try { img.writeTo(out); log("shot written " + out); } catch (Exception e) { log("shot failed " + e); } finally { img.close(); }
|
||||
});
|
||||
}
|
||||
case "exit" -> { log("final: " + EngineState.details()); mc.scheduleStop(); }
|
||||
default -> log("unknown command: " + line);
|
||||
}
|
||||
}
|
||||
|
||||
/** Creates a world through the vanilla Create World screen (default settings) and waits until the player exists. */
|
||||
private static void newWorld(MinecraftClient mc) {
|
||||
Screen s = mc.currentScreen;
|
||||
switch (newWorldStage) {
|
||||
case 1 -> { CreateWorldScreen.show(mc, () -> {}); newWorldStage = 2; waitTicks = 0; newWorldDelay = 40; }
|
||||
case 2 -> {
|
||||
if (newWorldDelay-- > 0) return;
|
||||
if (s instanceof CreateWorldScreen) {
|
||||
for (var c : s.children()) {
|
||||
if (c instanceof ButtonWidget b && b.getMessage().getString().toLowerCase().contains("create new world")) {
|
||||
try { ((net.minecraft.client.gui.widget.TextFieldWidget) findName(s)).setText(newWorldName); } catch (Throwable t) { log("name field: " + t); }
|
||||
b.onPress(null);
|
||||
log("create world pressed: " + newWorldName);
|
||||
newWorldStage = 3;
|
||||
newWorldDelay = 20 * 120;
|
||||
return;
|
||||
}
|
||||
}
|
||||
log("create button not found; screen children=" + s.children().size());
|
||||
newWorldStage = 0;
|
||||
} else { log("expected CreateWorldScreen, got " + (s == null ? null : s.getClass().getName())); newWorldStage = 0; }
|
||||
}
|
||||
case 3 -> {
|
||||
if (mc.world != null && mc.player != null) { log("world ready (player in world)"); newWorldStage = 0; }
|
||||
else if (newWorldDelay-- < 0) { log("world creation timed out"); newWorldStage = 0; }
|
||||
}
|
||||
default -> newWorldStage = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private static int newWorldDelay;
|
||||
|
||||
private static Object findName(Screen s) {
|
||||
// the world name field is the first TextFieldWidget in the tree of the create-world screen
|
||||
List<Object> todo = new ArrayList<>(s.children());
|
||||
for (int i = 0; i < todo.size(); i++) {
|
||||
Object o = todo.get(i);
|
||||
if (o instanceof net.minecraft.client.gui.widget.TextFieldWidget t) return t;
|
||||
if (o instanceof net.minecraft.client.gui.ParentElement pe) todo.addAll(pe.children());
|
||||
}
|
||||
throw new IllegalStateException("world name field not found");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
package dev.zprestige.prestige.engine;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.Supplier;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.lenni0451.classtransform.TransformerManager;
|
||||
import net.lenni0451.classtransform.utils.FailStrategy;
|
||||
import net.lenni0451.classtransform.utils.tree.IClassProvider;
|
||||
import org.objectweb.asm.ClassReader;
|
||||
import org.objectweb.asm.ClassWriter;
|
||||
import org.objectweb.asm.Opcodes;
|
||||
import org.objectweb.asm.Type;
|
||||
import org.objectweb.asm.tree.AnnotationNode;
|
||||
import org.objectweb.asm.tree.ClassNode;
|
||||
import org.objectweb.asm.tree.FieldInsnNode;
|
||||
import org.objectweb.asm.tree.FrameNode;
|
||||
import org.objectweb.asm.tree.InsnList;
|
||||
import org.objectweb.asm.tree.InsnNode;
|
||||
import org.objectweb.asm.tree.JumpInsnNode;
|
||||
import org.objectweb.asm.tree.LabelNode;
|
||||
import org.objectweb.asm.tree.LdcInsnNode;
|
||||
import org.objectweb.asm.tree.MethodInsnNode;
|
||||
import org.objectweb.asm.tree.MethodNode;
|
||||
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
|
||||
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;
|
||||
|
||||
/**
|
||||
* Applies the ClassTransform transformers of the Prestige client (the original native loader installed them through an agent)
|
||||
* to the Minecraft classes, from inside Sponge Mixin: for every target class one anchor mixin (dev.zprestige.prestige.engine.mixin.N../I..)
|
||||
* makes Mixin call {@link #preApply}, which runs the ClassTransform transformation on the live Mixin ClassNode.
|
||||
*
|
||||
* Namespaces: the transformer classes reference Minecraft by Yarn names in strings (annotation values) and by the names of the
|
||||
* jar variant in bytecode. In the Gradle dev client the runtime names are Yarn ("named": the mapper is void), in a production
|
||||
* install they are Intermediary (the bundled Yarn tiny maps the Yarn strings to Intermediary).
|
||||
*/
|
||||
public final class EnginePlugin implements IMixinConfigPlugin {
|
||||
private static final String HOOKS = "Lnet/lenni0451/classtransform/annotations/injection/";
|
||||
private TransformerManager manager;
|
||||
private String namespace = "named";
|
||||
private int expectedTargets;
|
||||
|
||||
@Override public void onLoad(String mixinPackage) {
|
||||
try {
|
||||
String forced = System.getProperty("prestige.engine.namespace"); // test override ("named" / "intermediary")
|
||||
if (forced != null) namespace = forced;
|
||||
else try { namespace = FabricLoader.getInstance().getMappingResolver().getCurrentRuntimeNamespace(); } catch (Throwable t) { namespace = "named"; }
|
||||
boolean named = namespace.equals("named");
|
||||
ClassLoader loader = EnginePlugin.class.getClassLoader();
|
||||
byte[] tiny = named ? null : resource("prestige-engine/mappings.tiny");
|
||||
List<String> transformers = lines("prestige-engine/transformers.list");
|
||||
expectedTargets = lines(named ? "prestige-engine/targets.named.list" : "prestige-engine/targets.intermediary.list").size();
|
||||
manager = new TransformerManager(new ResourceClassProvider(loader, new HashSet<>(transformers)), tiny == null ? null : new ByteArrayInputStream(tiny));
|
||||
manager.setFailStrategy(FailStrategy.CANCEL);
|
||||
for (String name : transformers) manager.addTransformer(name);
|
||||
if (manager.getTransformedClasses().size() != expectedTargets)
|
||||
throw new IllegalStateException("Expected " + expectedTargets + " Minecraft targets, got " + manager.getTransformedClasses().size());
|
||||
EngineState.installed = true;
|
||||
System.out.println("[Engine] namespace=" + namespace + " REGISTERED=" + transformers.size() + " TARGETS=" + expectedTargets);
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("Unable to prepare the Prestige game hooks", e);
|
||||
}
|
||||
}
|
||||
|
||||
/** Class bytes from the mod class path; the callbacks (void CInject/CModifyArgs handlers) get the readiness gate on the way. */
|
||||
private static final class ResourceClassProvider implements IClassProvider {
|
||||
private final ClassLoader loader;
|
||||
private final Set<String> transformers;
|
||||
ResourceClassProvider(ClassLoader loader, Set<String> transformers) { this.loader = loader; this.transformers = transformers; }
|
||||
|
||||
@Override public byte[] getClass(String name) throws ClassNotFoundException {
|
||||
String path = name.replace('.', '/') + ".class";
|
||||
try (InputStream in = loader.getResourceAsStream(path)) {
|
||||
if (in == null) throw new ClassNotFoundException(name + " (missing resource " + path + ")");
|
||||
byte[] bytes = in.readAllBytes();
|
||||
return transformers.contains(name.replace('/', '.')) ? gate(bytes) : bytes;
|
||||
} catch (IOException e) {
|
||||
throw new ClassNotFoundException(name, e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public Map<String, Supplier<byte[]>> getAllClasses() {
|
||||
throw new UnsupportedOperationException("Wildcard class enumeration is not used by the engine");
|
||||
}
|
||||
|
||||
/** Prepends "if (!EngineState.ready) return; EngineState.onCallback(id);" to every void callback. */
|
||||
private static byte[] gate(byte[] bytes) {
|
||||
ClassNode node = new ClassNode();
|
||||
new ClassReader(bytes).accept(node, 0);
|
||||
int count = 0;
|
||||
for (MethodNode method : node.methods) {
|
||||
if (!hasHook(method)) continue;
|
||||
if (Type.getReturnType(method.desc).getSort() != Type.VOID) {
|
||||
System.out.println("[Engine] note: non-void callback not gated: " + node.name + "." + method.name);
|
||||
continue;
|
||||
}
|
||||
InsnList gate = new InsnList();
|
||||
LabelNode run = new LabelNode();
|
||||
gate.add(new FieldInsnNode(Opcodes.GETSTATIC, "dev/zprestige/prestige/engine/EngineState", "ready", "Z"));
|
||||
gate.add(new JumpInsnNode(Opcodes.IFNE, run));
|
||||
gate.add(new InsnNode(Opcodes.RETURN));
|
||||
gate.add(run);
|
||||
gate.add(new FrameNode(Opcodes.F_SAME, 0, null, 0, null));
|
||||
gate.add(new LdcInsnNode(node.name.substring(node.name.lastIndexOf('/') + 1) + "." + method.name));
|
||||
gate.add(new MethodInsnNode(Opcodes.INVOKESTATIC, "dev/zprestige/prestige/engine/EngineState", "onCallback", "(Ljava/lang/String;)V", false));
|
||||
method.instructions.insert(gate);
|
||||
count++;
|
||||
}
|
||||
if (count == 0) return bytes;
|
||||
ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
|
||||
node.accept(writer);
|
||||
return writer.toByteArray();
|
||||
}
|
||||
|
||||
private static boolean hasHook(MethodNode m) {
|
||||
return hasHook(m.visibleAnnotations) || hasHook(m.invisibleAnnotations);
|
||||
}
|
||||
|
||||
private static boolean hasHook(List<AnnotationNode> list) {
|
||||
if (list == null) return false;
|
||||
for (AnnotationNode a : list)
|
||||
if (a.desc.equals(HOOKS + "CInject;") || a.desc.equals(HOOKS + "CModifyArgs;")) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
private static byte[] resource(String name) throws IOException {
|
||||
try (InputStream in = EnginePlugin.class.getClassLoader().getResourceAsStream(name)) {
|
||||
if (in == null) throw new IllegalStateException("Missing engine resource: " + name);
|
||||
return in.readAllBytes();
|
||||
}
|
||||
}
|
||||
|
||||
private static List<String> lines(String name) throws IOException {
|
||||
return new String(resource(name), StandardCharsets.UTF_8).lines().map(String::trim).filter(s -> !s.isEmpty()).toList();
|
||||
}
|
||||
|
||||
@Override public void preApply(String targetName, ClassNode target, String mixin, IMixinInfo info) {
|
||||
if (!manager.getTransformedClasses().contains(targetName)) throw new IllegalStateException("Unexpected target: " + targetName);
|
||||
if (!EngineState.transformed.add(targetName)) throw new IllegalStateException("Duplicate transformation: " + targetName);
|
||||
|
||||
// ClassTransform parses the bytes it is given; hand it a copy but let its output land in the LIVE Mixin node, so the method
|
||||
// nodes Mixin (and MixinExtras) already reference stay valid.
|
||||
ClassWriter writer = new ClassWriter(0);
|
||||
target.accept(writer);
|
||||
ClassNode[] liveTarget = {target};
|
||||
manager.addRawTransformer(targetName, (engine, parsed) -> {
|
||||
if (liveTarget[0] == null) return parsed;
|
||||
if (!parsed.name.equals(liveTarget[0].name)) throw new IllegalStateException("Unexpected target for " + targetName);
|
||||
ClassNode live = liveTarget[0];
|
||||
liveTarget[0] = null;
|
||||
return live;
|
||||
});
|
||||
try {
|
||||
byte[] verified = manager.transform(targetName, writer.toByteArray(), true);
|
||||
if (verified == null) throw new IllegalStateException("Transformation failed for " + targetName + "; see ClassTransform diagnostics");
|
||||
// the transformed live node needs new max stack/locals: take them from the re-serialised class
|
||||
ClassNode calculated = new ClassNode();
|
||||
new ClassReader(verified).accept(calculated, ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES);
|
||||
for (MethodNode method : target.methods) {
|
||||
MethodNode sizing = calculated.methods.stream().filter(m -> m.name.equals(method.name) && m.desc.equals(method.desc)).findFirst().orElseThrow();
|
||||
method.maxLocals = sizing.maxLocals;
|
||||
method.maxStack = sizing.maxStack;
|
||||
}
|
||||
} finally {
|
||||
liveTarget[0] = null;
|
||||
}
|
||||
System.out.println("[Engine] TRANSFORMED=" + targetName);
|
||||
}
|
||||
|
||||
/** The anchor mixins for the runtime namespace (Yarn "N" set in the dev client, Intermediary "I" set in production). */
|
||||
@Override public List<String> getMixins() {
|
||||
String prefix = namespace.equals("named") ? "N" : "I";
|
||||
List<String> out = new ArrayList<>();
|
||||
for (int i = 0; i < expectedTargets; i++) out.add(String.format("%s%02d", prefix, i));
|
||||
return out;
|
||||
}
|
||||
|
||||
@Override public String getRefMapperConfig() { return null; }
|
||||
@Override public boolean shouldApplyMixin(String target, String mixin) { return true; }
|
||||
@Override public void acceptTargets(Set<String> own, Set<String> other) {}
|
||||
@Override public void postApply(String target, ClassNode node, String mixin, IMixinInfo info) {}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package dev.zprestige.prestige.engine;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeMap;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.atomic.LongAdder;
|
||||
|
||||
/**
|
||||
* Shared state of the game-hook engine. Loaded by the Mixin config plugin (very early) and referenced from the gate that is
|
||||
* injected into every ClassTransform callback, so it must stay free of Minecraft and Prestige-client types.
|
||||
*/
|
||||
public final class EngineState {
|
||||
private EngineState() {}
|
||||
|
||||
/** The transformers are registered and the Mixin plugin is installed. */
|
||||
public static volatile boolean installed;
|
||||
/** Callbacks only run once the client is initialised (Prestige.init finished, modules registered). */
|
||||
public static volatile boolean ready;
|
||||
/** Target classes that were transformed (dotted runtime names). */
|
||||
public static final Set<String> transformed = ConcurrentHashMap.newKeySet();
|
||||
/** Callback hit counters keyed by "MixinClass.method". */
|
||||
public static final ConcurrentHashMap<String, LongAdder> callbacks = new ConcurrentHashMap<>();
|
||||
/** Events posted on the client EventBus by event class simple name (see EventBusStatsMixin). */
|
||||
public static final ConcurrentHashMap<String, LongAdder> events = new ConcurrentHashMap<>();
|
||||
|
||||
/** Called from the injected gate of every callback that passed the readiness check. */
|
||||
public static void onCallback(String name) {
|
||||
LongAdder a = callbacks.get(name);
|
||||
if (a == null) {
|
||||
a = callbacks.computeIfAbsent(name, k -> {
|
||||
System.out.println("[Engine] FIRST_CALLBACK=" + k);
|
||||
return new LongAdder();
|
||||
});
|
||||
}
|
||||
a.increment();
|
||||
}
|
||||
|
||||
public static void onEvent(Class<?> type) {
|
||||
String n = type.getSimpleName();
|
||||
LongAdder a = events.get(n);
|
||||
if (a == null) a = events.computeIfAbsent(n, k -> new LongAdder());
|
||||
a.increment();
|
||||
}
|
||||
|
||||
public static void markReady(String why) {
|
||||
if (!ready) {
|
||||
ready = true;
|
||||
System.out.println("[Engine] READY (" + why + ") targets transformed=" + transformed.size());
|
||||
}
|
||||
}
|
||||
|
||||
public static String summary() {
|
||||
StringBuilder sb = new StringBuilder("ENGINE installed=").append(installed).append(" ready=").append(ready)
|
||||
.append(" transformed=").append(transformed.size()).append(" callbacksSeen=").append(callbacks.size())
|
||||
.append(" eventTypesSeen=").append(events.size());
|
||||
long cb = 0, ev = 0;
|
||||
for (LongAdder a : callbacks.values()) cb += a.sum();
|
||||
for (LongAdder a : events.values()) ev += a.sum();
|
||||
sb.append(" callbackTotal=").append(cb).append(" eventTotal=").append(ev);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static String details() {
|
||||
StringBuilder sb = new StringBuilder(summary());
|
||||
Map<String, Long> c = new TreeMap<>();
|
||||
callbacks.forEach((k, v) -> c.put(k, v.sum()));
|
||||
sb.append("\n callbacks: ").append(c);
|
||||
Map<String, Long> e = new TreeMap<>();
|
||||
events.forEach((k, v) -> e.put(k, v.sum()));
|
||||
sb.append("\n events: ").append(e);
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_4970$class_4971: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_4970$class_4971", remap = false, priority = 2000)
|
||||
public abstract class I00 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_2248: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_2248", remap = false, priority = 2000)
|
||||
public abstract class I01 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_309: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_309", remap = false, priority = 2000)
|
||||
public abstract class I02 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_310: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_310", remap = false, priority = 2000)
|
||||
public abstract class I03 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_312: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_312", remap = false, priority = 2000)
|
||||
public abstract class I04 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_279: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_279", remap = false, priority = 2000)
|
||||
public abstract class I05 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_329: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_329", remap = false, priority = 2000)
|
||||
public abstract class I06 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_4603: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_4603", remap = false, priority = 2000)
|
||||
public abstract class I07 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_437: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_437", remap = false, priority = 2000)
|
||||
public abstract class I08 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_743: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_743", remap = false, priority = 2000)
|
||||
public abstract class I09 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_742: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_742", remap = false, priority = 2000)
|
||||
public abstract class I10 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_634: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_634", remap = false, priority = 2000)
|
||||
public abstract class I11 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_746: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_746", remap = false, priority = 2000)
|
||||
public abstract class I12 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_636: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_636", remap = false, priority = 2000)
|
||||
public abstract class I13 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_640: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_640", remap = false, priority = 2000)
|
||||
public abstract class I14 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_9919: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_9919", remap = false, priority = 2000)
|
||||
public abstract class I15 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_702: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_702", remap = false, priority = 2000)
|
||||
public abstract class I16 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_4184: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_4184", remap = false, priority = 2000)
|
||||
public abstract class I17 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_757: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_757", remap = false, priority = 2000)
|
||||
public abstract class I18 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_765: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_765", remap = false, priority = 2000)
|
||||
public abstract class I19 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_9975: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_9975", remap = false, priority = 2000)
|
||||
public abstract class I20 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_761: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_761", remap = false, priority = 2000)
|
||||
public abstract class I21 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_852: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_852", remap = false, priority = 2000)
|
||||
public abstract class I22 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_11683: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_11683", remap = false, priority = 2000)
|
||||
public abstract class I23 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_8138$class_8141: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_8138$class_8141", remap = false, priority = 2000)
|
||||
public abstract class I24 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_897: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_897", remap = false, priority = 2000)
|
||||
public abstract class I25 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_922: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_922", remap = false, priority = 2000)
|
||||
public abstract class I26 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_758: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_758", remap = false, priority = 2000)
|
||||
public abstract class I27 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_759: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_759", remap = false, priority = 2000)
|
||||
public abstract class I28 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_638: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_638", remap = false, priority = 2000)
|
||||
public abstract class I29 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_1297: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_1297", remap = false, priority = 2000)
|
||||
public abstract class I30 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_1309: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_1309", remap = false, priority = 2000)
|
||||
public abstract class I31 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_1657: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_1657", remap = false, priority = 2000)
|
||||
public abstract class I32 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_1799: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_1799", remap = false, priority = 2000)
|
||||
public abstract class I33 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_2535: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_2535", remap = false, priority = 2000)
|
||||
public abstract class I34 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_3294: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_3294", remap = false, priority = 2000)
|
||||
public abstract class I35 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_3304: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_3304", remap = false, priority = 2000)
|
||||
public abstract class I36 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_3218: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_3218", remap = false, priority = 2000)
|
||||
public abstract class I37 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_5223: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_5223", remap = false, priority = 2000)
|
||||
public abstract class I38 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_1937: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_1937", remap = false, priority = 2000)
|
||||
public abstract class I39 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_2818: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_2818", remap = false, priority = 2000)
|
||||
public abstract class I40 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.class_5868: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.class_5868", remap = false, priority = 2000)
|
||||
public abstract class I41 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.block.AbstractBlock$AbstractBlockState: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.block.AbstractBlock$AbstractBlockState", remap = false, priority = 2000)
|
||||
public abstract class N00 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.block.Block: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.block.Block", remap = false, priority = 2000)
|
||||
public abstract class N01 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.Keyboard: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.Keyboard", remap = false, priority = 2000)
|
||||
public abstract class N02 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.MinecraftClient: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.MinecraftClient", remap = false, priority = 2000)
|
||||
public abstract class N03 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.Mouse: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.Mouse", remap = false, priority = 2000)
|
||||
public abstract class N04 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.gl.PostEffectProcessor: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.gl.PostEffectProcessor", remap = false, priority = 2000)
|
||||
public abstract class N05 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.gui.hud.InGameHud: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.gui.hud.InGameHud", remap = false, priority = 2000)
|
||||
public abstract class N06 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.gui.hud.InGameOverlayRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.gui.hud.InGameOverlayRenderer", remap = false, priority = 2000)
|
||||
public abstract class N07 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.gui.screen.Screen: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.gui.screen.Screen", remap = false, priority = 2000)
|
||||
public abstract class N08 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.input.KeyboardInput: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.input.KeyboardInput", remap = false, priority = 2000)
|
||||
public abstract class N09 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.network.AbstractClientPlayerEntity: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.network.AbstractClientPlayerEntity", remap = false, priority = 2000)
|
||||
public abstract class N10 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.network.ClientPlayNetworkHandler: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.network.ClientPlayNetworkHandler", remap = false, priority = 2000)
|
||||
public abstract class N11 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.network.ClientPlayerEntity: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.network.ClientPlayerEntity", remap = false, priority = 2000)
|
||||
public abstract class N12 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.network.ClientPlayerInteractionManager: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.network.ClientPlayerInteractionManager", remap = false, priority = 2000)
|
||||
public abstract class N13 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.network.PlayerListEntry: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.network.PlayerListEntry", remap = false, priority = 2000)
|
||||
public abstract class N14 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.option.InactivityFpsLimiter: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.option.InactivityFpsLimiter", remap = false, priority = 2000)
|
||||
public abstract class N15 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.particle.ParticleManager: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.particle.ParticleManager", remap = false, priority = 2000)
|
||||
public abstract class N16 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.Camera: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.Camera", remap = false, priority = 2000)
|
||||
public abstract class N17 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.GameRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.GameRenderer", remap = false, priority = 2000)
|
||||
public abstract class N18 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.LightmapTextureManager: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.LightmapTextureManager", remap = false, priority = 2000)
|
||||
public abstract class N19 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.SkyRendering: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.SkyRendering", remap = false, priority = 2000)
|
||||
public abstract class N20 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.WorldRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.WorldRenderer", remap = false, priority = 2000)
|
||||
public abstract class N21 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.chunk.ChunkOcclusionDataBuilder: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.chunk.ChunkOcclusionDataBuilder", remap = false, priority = 2000)
|
||||
public abstract class N22 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.command.ModelCommandRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.command.ModelCommandRenderer", remap = false, priority = 2000)
|
||||
public abstract class N23 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.entity.DisplayEntityRenderer$TextDisplayEntityRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.entity.DisplayEntityRenderer$TextDisplayEntityRenderer", remap = false, priority = 2000)
|
||||
public abstract class N24 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.entity.EntityRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.entity.EntityRenderer", remap = false, priority = 2000)
|
||||
public abstract class N25 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.entity.LivingEntityRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.entity.LivingEntityRenderer", remap = false, priority = 2000)
|
||||
public abstract class N26 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.fog.FogRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.fog.FogRenderer", remap = false, priority = 2000)
|
||||
public abstract class N27 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.render.item.HeldItemRenderer: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.render.item.HeldItemRenderer", remap = false, priority = 2000)
|
||||
public abstract class N28 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.client.world.ClientWorld: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.client.world.ClientWorld", remap = false, priority = 2000)
|
||||
public abstract class N29 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.entity.Entity: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.entity.Entity", remap = false, priority = 2000)
|
||||
public abstract class N30 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.entity.LivingEntity: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.entity.LivingEntity", remap = false, priority = 2000)
|
||||
public abstract class N31 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.entity.player.PlayerEntity: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.entity.player.PlayerEntity", remap = false, priority = 2000)
|
||||
public abstract class N32 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.item.ItemStack: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.item.ItemStack", remap = false, priority = 2000)
|
||||
public abstract class N33 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.network.ClientConnection: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.network.ClientConnection", remap = false, priority = 2000)
|
||||
public abstract class N34 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.resource.NamespaceResourceManager: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.resource.NamespaceResourceManager", remap = false, priority = 2000)
|
||||
public abstract class N35 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.resource.ReloadableResourceManagerImpl: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.resource.ReloadableResourceManagerImpl", remap = false, priority = 2000)
|
||||
public abstract class N36 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.server.world.ServerWorld: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.server.world.ServerWorld", remap = false, priority = 2000)
|
||||
public abstract class N37 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.text.TextVisitFactory: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.text.TextVisitFactory", remap = false, priority = 2000)
|
||||
public abstract class N38 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.world.World: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.world.World", remap = false, priority = 2000)
|
||||
public abstract class N39 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.world.chunk.WorldChunk: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.world.chunk.WorldChunk", remap = false, priority = 2000)
|
||||
public abstract class N40 {}
|
||||
@@ -0,0 +1,7 @@
|
||||
package dev.zprestige.prestige.engine.mixin;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
||||
/** Engine anchor for net.minecraft.world.gen.HeightContext: gives Mixin a target so EnginePlugin.preApply runs the ClassTransform hooks on it. */
|
||||
@Mixin(targets = "net.minecraft.world.gen.HeightContext", remap = false, priority = 2000)
|
||||
public abstract class N41 {}
|
||||
Reference in new issue
Block a user