Skip to content

Commit

Permalink
Remove unused mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Feb 2, 2024
1 parent 5a5ec8b commit 38892ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
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;
Expand Down Expand Up @@ -80,10 +78,4 @@ public void render(MatrixStack matrices, VertexConsumerProvider vertices, Portal

matrices.pop();
}

public interface WorldRendererDuck {
ObjectArrayList<?> unicopia_getChunkInfos();

Frustum unicopia_getFrustum();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@

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;
Expand All @@ -28,7 +25,7 @@
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();

Expand All @@ -44,10 +41,6 @@ public ClientBlockDestructionManager getDestructionManager() {
return destructions;
}

@Override
@Accessor("chunkInfos")
public abstract ObjectArrayList<?> unicopia_getChunkInfos();

@Override
@Accessor("ticks")
public abstract int getTicks();
Expand Down

0 comments on commit 38892ff

Please sign in to comment.