Sync local working tree: injector, engine, mixin and build updates

Add compatibility notes, resource-provider and hook checks, and payload
bundling script. Remove generated engine mixin stubs, engine target lists
and prebuilt binaries now produced by the build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
aidanandClaude Opus 5.5 committed 2026-11-10 17:27:24 -06:00
1 parent 6d94493e58
commit 05d169a2dd
210 files changed
+1862 -849

No files matched your search

@@ -119,7 +119,11 @@ public class ExplosionDamageCalculator implements MinecraftAccess {
(float)damage,
mc.world.getDamageSources().explosion(null),
target.getArmor(),
//? if >=1.21.2 {
(float)target.getAttributeInstance(EntityAttributes.ARMOR_TOUGHNESS).getValue()
//? } else {
/* (float)target.getAttributeInstance(EntityAttributes.GENERIC_ARMOR_TOUGHNESS).getValue()
*///? }
);
damage = this.applyResistance(target, damage);
damage = applyProtectionEnchantments(target, damage, mc.world.getDamageSources().explosion(null));
@@ -148,7 +152,11 @@ public class ExplosionDamageCalculator implements MinecraftAccess {
(float)damage,
mc.world.getDamageSources().explosion(null),
target.getArmor(),
//? if >=1.21.2 {
(float)target.getAttributeInstance(EntityAttributes.ARMOR_TOUGHNESS).getValue()
//? } else {
/* (float)target.getAttributeInstance(EntityAttributes.GENERIC_ARMOR_TOUGHNESS).getValue()
*///? }
);
damage = this.applyResistance(target, damage);
damage = applyProtectionEnchantments(target, damage, mc.world.getDamageSources().explosion(null));
@@ -175,7 +183,11 @@ public class ExplosionDamageCalculator implements MinecraftAccess {
(float)damage,
mc.world.getDamageSources().explosion(null),
target.getArmor(),
//? if >=1.21.2 {
(float)target.getAttributeInstance(EntityAttributes.ARMOR_TOUGHNESS).getValue()
//? } else {
/* (float)target.getAttributeInstance(EntityAttributes.GENERIC_ARMOR_TOUGHNESS).getValue()
*///? }
);
damage = applyProtectionEnchantments(target, damage, mc.world.getDamageSources().explosion(null));
return damage < 0.0 ? 0.0 : damage;
@@ -210,7 +222,11 @@ public class ExplosionDamageCalculator implements MinecraftAccess {
(float)damage,
mc.world.getDamageSources().explosion(null),
target.getArmor(),
//? if >=1.21.2 {
(float)target.getAttributeInstance(EntityAttributes.ARMOR_TOUGHNESS).getValue()
//? } else {
/* (float)target.getAttributeInstance(EntityAttributes.GENERIC_ARMOR_TOUGHNESS).getValue()
*///? }
);
damage = applyProtectionEnchantments(target, damage, mc.world.getDamageSources().explosion(null));
return damage < 0.0 ? 0.0 : damage;
@@ -225,7 +241,7 @@ public class ExplosionDamageCalculator implements MinecraftAccess {
int protectionFactor = 0;
Object2IntMap enchantments = (Object2IntMap)ENCHANTMENT_BUFFER.get();
for (EquipmentSlot slot : AttributeModifierSlot.ARMOR) {
for (EquipmentSlot slot : new EquipmentSlot[]{EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET}) {
collectEnchantments(target.getEquippedStack(slot), enchantments);
int protection = getEnchantmentLevel(enchantments, Enchantments.PROTECTION);
if (protection > 0) {
@@ -26,6 +26,7 @@ public final class PearlFollowSimulatedPearl extends PersistentProjectileEntity
if (hitResult.getType() != Type.MISS) {
this.onCollision(hitResult);
} else {
//? if >=1.21.2
this.tickBlockCollision();
if (!this.landed) {
Vec3d motion = this.getVelocity();
@@ -72,7 +73,15 @@ public final class PearlFollowSimulatedPearl extends PersistentProjectileEntity
this.setVelocity(scaledMotion);
this.setYaw((float)(MathHelper.atan2(scaledMotion.x, scaledMotion.z) * 180.0F / (float)Math.PI));
this.setPitch((float)(MathHelper.atan2(scaledMotion.y, scaledMotion.horizontalLength()) * 180.0F / (float)Math.PI));
//? if >=1.21.5 {
this.lastYaw = this.getYaw();
//? } else {
/* this.prevYaw = this.getYaw();
*///? }
//? if >=1.21.5 {
this.lastPitch = this.getPitch();
//? } else {
/* this.prevPitch = this.getPitch();
*///? }
}
}
@@ -27,6 +27,7 @@ public final class PearlTrajectorySimulatedPearl extends PersistentProjectileEnt
this.onCollision(hitResult);
}
//? if >=1.21.2
this.tickBlockCollision();
Vec3d motion = this.getVelocity();
double nextX = this.getX() + motion.x;
@@ -68,7 +69,15 @@ public final class PearlTrajectorySimulatedPearl extends PersistentProjectileEnt
this.setVelocity(scaledMotion);
this.setYaw((float)(MathHelper.atan2(scaledMotion.x, scaledMotion.z) * 180.0F / (float)Math.PI));
this.setPitch((float)(MathHelper.atan2(scaledMotion.y, scaledMotion.horizontalLength()) * 180.0F / (float)Math.PI));
//? if >=1.21.5 {
this.lastYaw = this.getYaw();
//? } else {
/* this.prevYaw = this.getYaw();
*///? }
//? if >=1.21.5 {
this.lastPitch = this.getPitch();
//? } else {
/* this.prevPitch = this.getPitch();
*///? }
}
}
@@ -27,6 +27,7 @@ public final class TrajectoriesSimulatedPearl extends PersistentProjectileEntity
this.onCollision(hitResult);
}
//? if >=1.21.2
this.tickBlockCollision();
Vec3d motion = this.getVelocity();
double nextX = this.getX() + motion.x;
@@ -68,7 +69,15 @@ public final class TrajectoriesSimulatedPearl extends PersistentProjectileEntity
this.setVelocity(scaledMotion);
this.setYaw((float)(MathHelper.atan2(scaledMotion.x, scaledMotion.z) * 180.0F / (float)Math.PI));
this.setPitch((float)(MathHelper.atan2(scaledMotion.y, scaledMotion.horizontalLength()) * 180.0F / (float)Math.PI));
//? if >=1.21.5 {
this.lastYaw = this.getYaw();
//? } else {
/* this.prevYaw = this.getYaw();
*///? }
//? if >=1.21.5 {
this.lastPitch = this.getPitch();
//? } else {
/* this.prevPitch = this.getPitch();
*///? }
}
}
@@ -82,28 +82,76 @@ public class VisualRotationManager implements MinecraftAccess {
this.savedPitch = mc.player.getPitch();
this.savedBodyYaw = mc.player.bodyYaw;
this.savedHeadYaw = mc.player.headYaw;
//? if >=1.21.5 {
this.savedLastYaw = mc.player.lastYaw;
//? } else {
/* this.savedLastYaw = mc.player.prevYaw;
*///? }
//? if >=1.21.5 {
this.savedLastPitch = mc.player.lastPitch;
//? } else {
/* this.savedLastPitch = mc.player.prevPitch;
*///? }
//? if >=1.21.5 {
this.savedLastBodyYaw = mc.player.lastBodyYaw;
//? } else {
/* this.savedLastBodyYaw = mc.player.prevBodyYaw;
*///? }
//? if >=1.21.5 {
this.savedLastHeadYaw = mc.player.lastHeadYaw;
//? } else {
/* this.savedLastHeadYaw = mc.player.prevHeadYaw;
*///? }
mc.player.setYaw(this.renderYaw);
mc.player.setPitch(this.renderPitch);
mc.player.bodyYaw = this.renderYaw;
mc.player.headYaw = this.renderYaw;
//? if >=1.21.5 {
mc.player.lastYaw = this.prevRenderYaw;
//? } else {
/* mc.player.prevYaw = this.prevRenderYaw;
*///? }
//? if >=1.21.5 {
mc.player.lastPitch = this.prevRenderPitch;
//? } else {
/* mc.player.prevPitch = this.prevRenderPitch;
*///? }
//? if >=1.21.5 {
mc.player.lastBodyYaw = this.prevRenderYaw;
//? } else {
/* mc.player.prevBodyYaw = this.prevRenderYaw;
*///? }
//? if >=1.21.5 {
mc.player.lastHeadYaw = this.prevRenderYaw;
//? } else {
/* mc.player.prevHeadYaw = this.prevRenderYaw;
*///? }
this.applied = true;
} else if (event.getPhase() == EventPhase.POST && this.applied) {
mc.player.setYaw(this.savedYaw);
mc.player.setPitch(this.savedPitch);
mc.player.bodyYaw = this.savedBodyYaw;
mc.player.headYaw = this.savedHeadYaw;
//? if >=1.21.5 {
mc.player.lastYaw = this.savedLastYaw;
//? } else {
/* mc.player.prevYaw = this.savedLastYaw;
*///? }
//? if >=1.21.5 {
mc.player.lastPitch = this.savedLastPitch;
//? } else {
/* mc.player.prevPitch = this.savedLastPitch;
*///? }
//? if >=1.21.5 {
mc.player.lastBodyYaw = this.savedLastBodyYaw;
//? } else {
/* mc.player.prevBodyYaw = this.savedLastBodyYaw;
*///? }
//? if >=1.21.5 {
mc.player.lastHeadYaw = this.savedLastHeadYaw;
//? } else {
/* mc.player.prevHeadYaw = this.savedLastHeadYaw;
*///? }
this.applied = false;
}
}
@@ -12,7 +12,11 @@ import net.minecraft.resource.ResourcePack;
import net.minecraft.resource.ResourcePackInfo;
import net.minecraft.resource.ResourceType;
import net.minecraft.resource.ResourcePack.ResultConsumer;
//? if >=1.21.4 {
import net.minecraft.resource.metadata.ResourceMetadataSerializer;
//? } else {
/*import net.minecraft.resource.metadata.ResourceMetadataReader;
*///? }
import net.minecraft.util.Identifier;
import org.jetbrains.annotations.Nullable;
@@ -40,7 +44,11 @@ public class ClasspathResourcePack implements ResourcePack {
@Nullable
@Override
//? if >=1.21.4 {
public Object parseMetadata(ResourceMetadataSerializer metadataSerializer) throws IOException {
//? } else {
/* public Object parseMetadata(ResourceMetadataReader metadataSerializer) throws IOException {
*///? }
return null;
}
@@ -22,11 +22,13 @@ public record OutlineCaptureConsumer(MeshBuilder writer) implements VertexConsum
return this;
}
//? if >=1.21.11 {
@Override
public VertexConsumer lineWidth(float width) {
return this;
}
//? }
@Override
public VertexConsumer texture(float u, float v) {
this.writer.putFloats(new float[]{u, v});
@@ -65,6 +65,7 @@ public final class EngineDev implements ClientModInitializer {
switch (cmd) {
case "wait" -> waitTicks = Integer.parseInt(arg);
case "report" -> log(EngineState.details());
case "loadnative" -> System.load(Path.of(arg).toAbsolutePath().toString());
case "injectselftest" -> log(dev.zprestige.prestige.inject.SelfTest.run());
case "listeners" -> {
String text = DevCmd.listeners();
@@ -131,7 +132,11 @@ public final class EngineDev implements ClientModInitializer {
case "server" -> {
var server = mc.getServer();
if (server == null) { log("no integrated server"); return; }
//? if >=1.21.10 {
server.execute(() -> server.getCommandManager().parseAndExecute(server.getCommandSource(), arg));
//? } else {
/* server.execute(() -> server.getCommandManager().executeWithPrefix(server.getCommandSource(), arg));
*///? }
log("server command: " + arg);
}
case "newworld" -> { newWorldName = arg.isEmpty() ? "engine-test" : arg; newWorldStage = 1; }
@@ -144,27 +149,45 @@ public final class EngineDev implements ClientModInitializer {
case "shot" -> {
Path out = Path.of(arg).toAbsolutePath();
Files.createDirectories(out.getParent());
//? if >=1.21.5 {
ScreenshotRecorder.takeScreenshot(mc.getFramebuffer(), img -> {
try { img.writeTo(out); log("shot written " + out); } catch (Exception e) { log("shot failed " + e); } finally { img.close(); }
});
//? } else {
/* try (var img = ScreenshotRecorder.takeScreenshot(mc.getFramebuffer())) { img.writeTo(out); log("shot written " + out); }
*///? }
}
case "exit" -> { log("final: " + EngineState.details()); mc.scheduleStop(); }
default -> log("unknown command: " + line);
}
}
private static void openCreateWorld(MinecraftClient mc) {
//? if >=1.21.9 {
CreateWorldScreen.show(mc, () -> {});
//? } elif >=1.21.2 {
/*CreateWorldScreen.show(mc, mc.currentScreen);
*///? } else {
/*CreateWorldScreen.create(mc, mc.currentScreen);
*///? }
}
/** 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 1 -> { openCreateWorld(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); }
//? if >=1.21.9 {
b.onPress(null);
//? } else {
/* b.onPress();
*///? }
log("create world pressed: " + newWorldName);
newWorldStage = 3;
newWorldDelay = 20 * 120;
@@ -10,6 +10,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
import java.util.function.Supplier;
import net.fabricmc.loader.api.FabricLoader;
import net.lenni0451.classtransform.TransformerManager;
@@ -85,9 +86,15 @@ public final class EnginePlugin implements IMixinConfigPlugin {
/** Builds the ClassTransform manager for the given runtime namespace ("named" or "intermediary") and transformer class names. */
public static TransformerManager createManager(String namespace, List<String> transformers) throws IOException {
return createManager(namespace, transformers, null);
}
/** Injection can also supply bytes for generated classes that have no class-path resource. */
public static TransformerManager createManager(String namespace, List<String> transformers,
Function<Class<?>, byte[]> liveBytes) throws IOException {
ClassLoader loader = EnginePlugin.class.getClassLoader();
byte[] tiny = namespace.equals("named") ? null : resource("prestige-engine/mappings.tiny");
TransformerManager manager = new TransformerManager(new ResourceClassProvider(loader, new HashSet<>(transformers), tiny), tiny == null ? null : new ByteArrayInputStream(tiny));
TransformerManager manager = new TransformerManager(new ResourceClassProvider(loader, new HashSet<>(transformers), tiny, liveBytes), tiny == null ? null : new ByteArrayInputStream(tiny));
// A transformer whose target method does not exist in this runtime (Lunar's Genesis loader names some methods differently
// from the bundled mappings) is skipped on its own. CANCEL would drop every hook of the whole class and abort the injection.
manager.setFailStrategy(FailStrategy.CONTINUE);
@@ -99,12 +106,14 @@ public final class EnginePlugin implements IMixinConfigPlugin {
private static final class ResourceClassProvider implements IClassProvider {
private final ClassLoader loader;
private final Set<String> transformers;
private final Function<Class<?>, byte[]> liveBytes;
/** Named (Yarn) class name -> intermediary name, from the bundled mapping. Lunar's jar only has the intermediary files. */
private final Map<String, String> namedToIntermediary;
ResourceClassProvider(ClassLoader loader, Set<String> transformers, byte[] tiny) {
ResourceClassProvider(ClassLoader loader, Set<String> transformers, byte[] tiny, Function<Class<?>, byte[]> liveBytes) {
this.loader = loader;
this.transformers = transformers;
this.namedToIntermediary = classNames(tiny);
this.liveBytes = liveBytes;
}
private static Map<String, String> classNames(byte[] tiny) {
@@ -129,6 +138,18 @@ public final class EnginePlugin implements IMixinConfigPlugin {
in = loader.getResourceAsStream(slashed + ".class");
}
}
if (in == null && liveBytes != null) {
// MixinExtras defines LocalRefImpl at runtime without publishing a .class resource.
// Resolve without initialization, then ask the injection byte source for its actual definition.
try {
byte[] bytes = liveBytes.apply(Class.forName(slashed.replace('/', '.'), false, loader));
if (bytes != null && bytes.length != 0) {
return transformers.contains(slashed.replace('/', '.')) ? gate(bytes) : bytes;
}
} catch (ClassNotFoundException | LinkageError | RuntimeException e) {
throw new ClassNotFoundException(name + " (could not read generated class " + slashed + ")", e);
}
}
if (in == null) throw new ClassNotFoundException(name + " (missing resource " + slashed + ".class)");
try (InputStream stream = in) {
byte[] bytes = stream.readAllBytes();
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,7 +0,0 @@
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 {}
@@ -1,6 +1,10 @@
package dev.zprestige.prestige.event;
//? if >=1.21.9 {
import net.minecraft.entity.player.SkinTextures;
//? } else {
/*import net.minecraft.client.util.SkinTextures;
*///? }
public class SkinTexturesEvent extends Event {
private SkinTextures skinTextures;
@@ -2,6 +2,7 @@ package dev.zprestige.prestige.gui;
import dev.zprestige.prestige.Native;
import dev.zprestige.prestige.render.MinecraftAccess;
//? if >=1.21.9
import net.minecraft.client.gui.Click;
import net.minecraft.client.gui.DrawContext;
@@ -29,9 +30,15 @@ public class ClickGuiScreen extends BaseScreen implements MinecraftAccess {
}
@Override
//? if >=1.21.9 {
public boolean mouseClicked(Click click, boolean doubled) {
this.close();
return super.mouseClicked(click, doubled);
//? } else {
/* public boolean mouseClicked(double x, double y, int button) {
this.close();
return super.mouseClicked(x, y, button);
*///? }
}
@Override
@@ -35,6 +35,7 @@ import dev.zprestige.prestige.type.GuideAxis;
import java.awt.Color;
import java.util.ArrayList;
import net.minecraft.client.Mouse;
//? if >=1.21.9
import net.minecraft.client.gui.Click;
import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.ChatScreen;
@@ -151,7 +152,7 @@ public class HudEditorScreen extends BaseScreen {
public void renderEditor(BufferSource batch, CameraMatrices matrices, int mouseX, int mouseY, float tickDelta) {
Render2D.currentBuffers = batch;
Render2D.currentContext = matrices;
float guiScale = MinecraftAccess.mc.getWindow().getScaleFactor();
float guiScale = (float) MinecraftAccess.mc.getWindow().getScaleFactor();
float renderScale = getHudPixelScale() / guiScale;
float screenWidth = MinecraftAccess.mc.getWindow().getFramebufferWidth() / getHudPixelScale();
float screenHeight = MinecraftAccess.mc.getWindow().getFramebufferHeight() / getHudPixelScale();
@@ -358,10 +359,14 @@ public class HudEditorScreen extends BaseScreen {
}
@Override
//? if >=1.21.9 {
public boolean mouseClicked(Click click, boolean doubled) {
double rawX = click.x();
double rawY = click.y();
int button = click.button();
//? } else {
/* public boolean mouseClicked(double rawX, double rawY, int button) {
*///? }
if (this.panelX == -1.0F && this.panelY == -1.0F) {
this.init();
}
@@ -397,10 +402,14 @@ public class HudEditorScreen extends BaseScreen {
}
@Override
//? if >=1.21.9 {
public boolean mouseReleased(Click click) {
double rawX = click.x();
double rawY = click.y();
int button = click.button();
//? } else {
/* public boolean mouseReleased(double rawX, double rawY, int button) {
*///? }
double guiScale = MinecraftAccess.mc.getWindow().getScaleFactor();
double hudX = rawX * guiScale / getHudPixelScale();
double hudY = rawY * guiScale / getHudPixelScale();
@@ -441,7 +450,7 @@ public class HudEditorScreen extends BaseScreen {
} else if (!this.hasEnabledElement()) {
return false;
} else {
float guiScale = MinecraftAccess.mc.getWindow().getScaleFactor();
float guiScale = (float) MinecraftAccess.mc.getWindow().getScaleFactor();
float renderScale = getHudPixelScale() / guiScale;
Matrix4f matrix = new Matrix4f().scale(renderScale, renderScale, 1.0F);
if (!this.defaultPositionsApplied) {
@@ -1,7 +1,9 @@
package dev.zprestige.prestige.gui;
//? if >=1.21.9
import net.minecraft.client.gui.Click;
import net.minecraft.client.gui.screen.ingame.InventoryScreen;
//? if >=1.21.9
import net.minecraft.client.input.KeyInput;
import net.minecraft.entity.player.PlayerEntity;
@@ -11,12 +13,20 @@ public class LockedInventoryScreen extends InventoryScreen {
}
@Override
//? if >=1.21.9 {
public boolean handleHotbarKeyPressed(KeyInput input) {
//? } else {
/* public boolean handleHotbarKeyPressed(int key, int scancode) {
*///? }
return false;
}
@Override
//? if >=1.21.9 {
public boolean mouseClicked(Click click, boolean doubled) {
//? } else {
/* public boolean mouseClicked(double x, double y, int button) {
*///? }
return false;
}
}
@@ -52,6 +52,7 @@ public class CartHelperElement extends HudElement {
private void initIconStacks() {
if (!this.iconsInitialized) {
this.iconStacks[0] = new ItemStack(Items.CROSSBOW);
//? if >=1.21.2
this.iconStacks[0].set(DataComponentTypes.ITEM_MODEL, Identifier.of("minecraft", "crossbow_standby"));
this.iconStacks[1] = new ItemStack(Items.TNT_MINECART);
this.iconsInitialized = true;
@@ -264,7 +264,11 @@ public class CooldownIndicatorElement extends HudElement {
private float getItemCooldown(ItemStack stack, float tickDelta) {
if (stack != null && !stack.isEmpty()) {
try {
//? if >=1.21.2 {
return mc.player.getItemCooldownManager().getCooldownProgress(stack, tickDelta);
//? } else {
/* return mc.player.getItemCooldownManager().getCooldownProgress(stack.getItem(), tickDelta);
*///? }
} catch (Throwable ignored) {
return 0.0F;
}
@@ -91,7 +91,11 @@ public class TargetElement extends HudElement {
BlurredRoundedRectShader.drawBlurredRectCorners(batch, cameraData, scaledMatrix, this.x, this.y, panelWidth, panelHeight, 5, new Vector4f(4.0F));
ShapeRenderer.drawRoundedRect(scaledMatrix, this.x, this.y, this.x + panelWidth, this.y + panelHeight, HudStyle.BACKGROUND_COLOR, new Vector4f(4.0F));
if (targetPlayer != null) {
//? if >=1.21.9 {
Identifier newSkinId = mc.getNetworkHandler().getPlayerListEntry(targetPlayer.getUuid()).getSkinTextures().body().texturePath();
//? } else {
/* Identifier newSkinId = mc.getNetworkHandler().getPlayerListEntry(targetPlayer.getUuid()).getSkinTextures().texture();
*///? }
if (!newSkinId.equals(this.skinTextureId)) {
this.skinTextureId = newSkinId;
this.skinTexture = GlTextureHandle.wrapMinecraftTexture(newSkinId);
@@ -123,7 +127,7 @@ public class TargetElement extends HudElement {
this.lastRawHealth = rawHealth;
ArrayList armorList = new ArrayList();
for (EquipmentSlot slot : AttributeModifierSlot.ARMOR) {
for (EquipmentSlot slot : new EquipmentSlot[]{EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.LEGS, EquipmentSlot.FEET}) {
if (!slot.getName().equals("body")) {
armorList.add(targetPlayer.getEquippedStack(slot));
}
Loaded 100 of 210 files, more files were not shown because too many files have changed in this diff. Show more