Class FluidRenderer
java.lang.Object
net.minecraft.client.render.block.FluidRenderer
@Environment(CLIENT) public class FluidRenderer extends Object
-
Field Summary
Fields Modifier and Type Field Description private Sprite[]
lavaSprites
private Sprite
waterOverlaySprite
private Sprite[]
waterSprites
-
Constructor Summary
Constructors Constructor Description FluidRenderer()
-
Method Summary
Modifier and Type Method Description private int
getLight(BlockRenderView world, BlockPos pos)
private float
getNorthWestCornerFluidHeight(BlockView world, BlockPos pos, Fluid fluid)
private static boolean
isSameFluid(BlockView world, BlockPos pos, Direction side, FluidState state)
private static boolean
isSideCovered(BlockView world, BlockPos pos, Direction direction, float maxDeviation)
static boolean
method_29708(BlockRenderView blockRenderView, BlockPos blockPos, FluidState fluidState, BlockState blockState, Direction direction)
private static boolean
method_29709(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction)
private static boolean
method_29710(BlockView blockView, Direction direction, float float2, BlockPos blockPos, BlockState blockState)
protected void
onResourceReload()
boolean
render(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, FluidState state)
private void
vertex(VertexConsumer vertexConsumer, double x, double y, double z, float red, float green, float blue, float u, float v, int light)
-
Field Details
-
lavaSprites
-
waterSprites
-
waterOverlaySprite
-
-
Constructor Details
-
FluidRenderer
public FluidRenderer()
-
-
Method Details
-
onResourceReload
protected void onResourceReload() -
isSameFluid
private static boolean isSameFluid(BlockView world, BlockPos pos, Direction side, FluidState state) -
method_29710
private static boolean method_29710(BlockView blockView, Direction direction, float float2, BlockPos blockPos, BlockState blockState) -
isSideCovered
-
method_29709
private static boolean method_29709(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction) -
method_29708
public static boolean method_29708(BlockRenderView blockRenderView, BlockPos blockPos, FluidState fluidState, BlockState blockState, Direction direction) -
render
public boolean render(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, FluidState state) -
vertex
private void vertex(VertexConsumer vertexConsumer, double x, double y, double z, float red, float green, float blue, float u, float v, int light) -
getLight
-
getNorthWestCornerFluidHeight
-