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[]lavaSpritesprivate SpritewaterOverlaySpriteprivate Sprite[]waterSprites -
Constructor Summary
Constructors Constructor Description FluidRenderer() -
Method Summary
Modifier and Type Method Description private intgetLight(BlockRenderView world, BlockPos pos)private floatgetNorthWestCornerFluidHeight(BlockView world, BlockPos pos, Fluid fluid)private static booleanisSameFluid(BlockView world, BlockPos pos, Direction side, FluidState state)private static booleanisSideCovered(BlockView world, BlockPos pos, Direction direction, float maxDeviation)static booleanmethod_29708(BlockRenderView blockRenderView, BlockPos blockPos, FluidState fluidState, BlockState blockState, Direction direction)private static booleanmethod_29709(BlockView blockView, BlockPos blockPos, BlockState blockState, Direction direction)private static booleanmethod_29710(BlockView blockView, Direction direction, float float2, BlockPos blockPos, BlockState blockState)protected voidonResourceReload()booleanrender(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, FluidState state)private voidvertex(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
-