From 38892ffde43ca9f72e06457d7fe584626b3c32a9 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 2 Feb 2024 21:17:34 +0000 Subject: [PATCH] Remove unused mixin --- .../client/render/spell/PortalSpellRenderer.java | 8 -------- .../unicopia/mixin/client/MixinWorldRenderer.java | 9 +-------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java index 8881834e..a75c3f72 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/spell/PortalSpellRenderer.java @@ -6,9 +6,7 @@ import com.minelittlepony.unicopia.ability.magic.spell.effect.PortalSpell; import com.minelittlepony.unicopia.client.render.RenderLayers; import com.minelittlepony.unicopia.client.render.model.SphereModel; import com.minelittlepony.unicopia.entity.EntityReference; -import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.render.Frustum; import net.minecraft.client.render.VertexConsumer; import net.minecraft.client.render.VertexConsumerProvider; import net.minecraft.client.util.math.MatrixStack; @@ -80,10 +78,4 @@ public class PortalSpellRenderer extends SpellRenderer { matrices.pop(); } - - public interface WorldRendererDuck { - ObjectArrayList unicopia_getChunkInfos(); - - Frustum unicopia_getFrustum(); - } } diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java index bf5dc7b5..edcc852d 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/client/MixinWorldRenderer.java @@ -15,10 +15,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import com.minelittlepony.unicopia.client.ClientBlockDestructionManager; import com.minelittlepony.unicopia.client.UnicopiaClient; -import com.minelittlepony.unicopia.client.render.spell.PortalSpellRenderer; - import it.unimi.dsi.fastutil.longs.Long2ObjectMap; -import it.unimi.dsi.fastutil.objects.ObjectArrayList; import net.minecraft.client.render.BlockBreakingInfo; import net.minecraft.client.render.Camera; import net.minecraft.client.render.WorldRenderer; @@ -28,7 +25,7 @@ import net.minecraft.resource.SynchronousResourceReloader; import net.minecraft.util.math.RotationAxis; @Mixin(value = WorldRenderer.class, priority = 1001) -abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source, PortalSpellRenderer.WorldRendererDuck { +abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCloseable, ClientBlockDestructionManager.Source { private final ClientBlockDestructionManager destructions = new ClientBlockDestructionManager(); @@ -44,10 +41,6 @@ abstract class MixinWorldRenderer implements SynchronousResourceReloader, AutoCl return destructions; } - @Override - @Accessor("chunkInfos") - public abstract ObjectArrayList unicopia_getChunkInfos(); - @Override @Accessor("ticks") public abstract int getTicks();