Skip to content

Commit

Permalink
Cleanup DefaultFluidRenderMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Jan 3, 2025
1 parent ddd7c00 commit 01b2f17
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,18 @@
import java.util.Arrays;
import java.util.List;

@Debug(export = true)
@Mixin(value = DefaultFluidRenderer.class, remap = false)
public abstract class DefaultFluidRenderMixin {
@Unique private final ModelQuadViewMutable highlightQuad = new ModelQuad();

@Shadow protected abstract boolean isSideExposed(BlockAndTintGetter world, int x, int y, int z, Direction dir, float height);

@Shadow protected abstract void writeQuad(ChunkModelBuilder builder, TranslucentGeometryCollector collector, Material material, BlockPos offset, ModelQuadView quad, ModelQuadFacing facing, boolean flip);

@Shadow @Final private float[] brightness;

@Shadow @Final private int[] quadColors;

@Shadow protected abstract boolean isSideExposed(BlockAndTintGetter world, int x, int y, int z, Direction dir, float height);

@Shadow protected abstract void writeQuad(ChunkModelBuilder builder, TranslucentGeometryCollector collector, Material material, BlockPos offset, ModelQuadView quad, ModelQuadFacing facing, boolean flip);

@Inject(
method = "render",
at = @At("HEAD")
Expand Down

0 comments on commit 01b2f17

Please sign in to comment.