net.minecraft.client.render.block

public class FluidRenderer

net.minecraft.client.renderer.block.LiquidBlockRenderer
net.minecraft.class_775
net.minecraft.client.render.block.FluidRenderer

Field summary

Modifier and TypeField
private static final float
MAX_FLUID_HEIGHT
field_32781
FLUID_HEIGHT
private final Sprite
lavaStill
field_64568
field_64568
private final Sprite
lavaFlowing
field_64569
field_64569
private final Sprite
waterStill
field_64570
field_64570
private final Sprite
waterFlowing
field_64571
field_64571
private final Sprite
waterOverlay
field_4164
waterOverlaySprite

Constructor summary

ModifierConstructor
public (SpriteHolder materials)

Method summary

Modifier and TypeMethod
private static boolean
isNeighborSameFluid(FluidState fluidState, FluidState neighborFluidState)
method_3348(class_3610 arg0, class_3610 arg1)
isSameFluid(FluidState a, FluidState b)
private static boolean
isFaceOccludedByState(Direction direction, float height, BlockState state)
method_29710(class_2350 arg0, float arg1, class_2680 arg2)
isSideCovered(Direction side, float height, BlockState state)
private static boolean
isFaceOccludedByNeighbor(Direction direction, float height, BlockState neighborState)
method_3344(class_2350 arg0, float arg1, class_2680 arg2)
shouldSkipRendering(Direction side, float height, BlockState state)
private static boolean
isFaceOccludedBySelf(BlockState state, Direction direction)
method_29709(class_2680 arg0, class_2350 arg1)
isOppositeSideCovered(BlockState state, Direction side)
public static boolean
shouldRenderFace(FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState)
method_29708(class_3610 arg0, class_2680 arg1, class_2350 arg2, class_3610 arg3)
shouldRenderSide(FluidState fluid, BlockState state, Direction side, FluidState fluidFromSide)
public void
tesselate(BlockAndTintGetter level, BlockPos pos, VertexConsumer builder, BlockState blockState, FluidState fluidState)
method_3347(class_1920 arg0, class_2338 arg1, class_4588 arg2, class_2680 arg3, class_3610 arg4)
render(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState)
private float
calculateAverageHeight(BlockAndTintGetter level, Fluid type, float heightSelf, float height2, float height1, BlockPos cornerPos)
method_40077(class_1920 arg0, class_3611 arg1, float arg2, float arg3, float arg4, class_2338 arg5)
calculateFluidHeight(BlockRenderView world, Fluid fluid, float originHeight, float northSouthHeight, float eastWestHeight, BlockPos pos)
private void
addWeightedHeight(float[] weightedHeight, float height)
method_40080(float[] arg0, float arg1)
addHeight(float[] weightedAverageHeight, float height)
private float
getHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos)
method_40078(class_1920 arg0, class_3611 arg1, class_2338 arg2)
getFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos)
private float
getHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos, BlockState state, FluidState fluidState)
method_40079(class_1920 arg0, class_3611 arg1, class_2338 arg2, class_2680 arg3, class_3610 arg4)
getFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState)
private void
vertex(VertexConsumer builder, float x, float y, float z, float red, float green, float blue, float u, float v, int light)
method_23072(class_4588 arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, int arg9)
vertex(VertexConsumer vertexConsumer, float x, float y, float z, float red, float green, float blue, float u, float v, int light)
private int
getLightColor(BlockAndTintGetter level, BlockPos pos)
method_3343(class_1920 arg0, class_2338 arg1)
getLight(BlockRenderView world, BlockPos pos)