Remove unused mixin

This commit is contained in:
Sollace 2024-02-02 21:17:34 +00:00
parent 5a5ec8b24c
commit 38892ffde4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 1 additions and 16 deletions

View file

@ -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<PortalSpell> {
matrices.pop();
}
public interface WorldRendererDuck {
ObjectArrayList<?> unicopia_getChunkInfos();
Frustum unicopia_getFrustum();
}
}

View file

@ -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();