aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-09 22:12:27 +0200
commitdce5a156849a3ba1b09e28dbfc153fc14a7f7b2c (patch)
treeb51bffce829a14ed1bdccb581acec2dd1838540e /src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java
parent9d2b7bec68f98228acf913f029f0383e4dcff3d7 (diff)
downloadDulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.gz
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.tar.bz2
DulkirMod-Fabric-dce5a156849a3ba1b09e28dbfc153fc14a7f7b2c.zip
Port to 1.20.6HEADmaster
Diffstat (limited to 'src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java')
-rw-r--r--src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java b/src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java
deleted file mode 100644
index 0270251..0000000
--- a/src/main/java/com/dulkirfabric/mixin/render/LoomScreenMixin.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.dulkirfabric.mixin.render;
-
-import com.dulkirfabric.features.InventoryScale;
-import net.minecraft.block.entity.BannerPattern;
-import net.minecraft.client.gui.DrawContext;
-import net.minecraft.client.gui.screen.ingame.LoomScreen;
-import net.minecraft.client.util.math.MatrixStack;
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NbtCompound;
-import net.minecraft.nbt.NbtList;
-import net.minecraft.registry.entry.RegistryEntry;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.injection.At;
-import org.spongepowered.asm.mixin.injection.Inject;
-import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
-import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
-
-@Mixin(LoomScreen.class)
-public class LoomScreenMixin {
- @Inject(method = "drawBanner", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/math/MatrixStack;push()V", shift = At.Shift.AFTER), locals = LocalCapture.CAPTURE_FAILHARD)
- public void onCreateMatrix(DrawContext context, RegistryEntry<BannerPattern> pattern, int x, int y, CallbackInfo ci, NbtCompound nbtCompound, NbtList nbtList, ItemStack itemStack, MatrixStack matrixStack) {
- matrixStack.scale(InventoryScale.INSTANCE.getScale(), InventoryScale.INSTANCE.getScale(), 1F);
- }
-}
-