Class LiquidBlockRenderer
java.lang.Object
net.minecraft.client.renderer.block.LiquidBlockRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextureAtlasSpriteprivate final TextureAtlasSpriteprivate static final floatprivate final TextureAtlasSpriteprivate final TextureAtlasSpriteprivate final TextureAtlasSprite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddWeightedHeight(float[] weightedHeight, float height) private floatcalculateAverageHeight(BlockAndTintGetter level, Fluid type, float heightSelf, float height2, float height1, BlockPos cornerPos) private floatgetHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos) private floatgetHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos, BlockState state, FluidState fluidState) private intgetLightCoords(BlockAndTintGetter level, BlockPos pos) private static booleanisFaceOccludedByNeighbor(Direction direction, float height, BlockState neighborState) private static booleanisFaceOccludedBySelf(BlockState state, Direction direction) private static booleanisFaceOccludedByState(Direction direction, float height, BlockState state) private static booleanisNeighborSameFluid(FluidState fluidState, FluidState neighborFluidState) private static booleanisNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) static booleanshouldRenderFace(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) static booleanshouldRenderFace(FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) Deprecated.Neo: use overload that accepts BlockStatevoidtesselate(BlockAndTintGetter level, BlockPos pos, VertexConsumer builder, BlockState blockState, FluidState fluidState) private voidvertex(VertexConsumer builder, float x, float y, float z, float red, float green, float blue, float alpha, float u, float v, int light) private voidvertex(VertexConsumer builder, float x, float y, float z, int color, float u, float v, int lightCoords)
-
Field Details
-
MAX_FLUID_HEIGHT
private static final float MAX_FLUID_HEIGHT- See Also:
-
lavaStill
-
lavaFlowing
-
waterStill
-
waterFlowing
-
waterOverlay
-
-
Constructor Details
-
LiquidBlockRenderer
-
-
Method Details
-
isNeighborSameFluid
-
isNeighborStateHidingOverlay
private static boolean isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace) -
isFaceOccludedByState
-
isFaceOccludedByNeighbor
private static boolean isFaceOccludedByNeighbor(Direction direction, float height, BlockState neighborState) -
isFaceOccludedBySelf
-
shouldRenderFace
@Deprecated public static boolean shouldRenderFace(FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) Deprecated.Neo: use overload that accepts BlockState -
shouldRenderFace
public static boolean shouldRenderFace(FluidState fluidState, BlockState selfState, Direction direction, BlockState otherState) -
tesselate
public void tesselate(BlockAndTintGetter level, BlockPos pos, VertexConsumer builder, BlockState blockState, FluidState fluidState) -
calculateAverageHeight
private float calculateAverageHeight(BlockAndTintGetter level, Fluid type, float heightSelf, float height2, float height1, BlockPos cornerPos) -
addWeightedHeight
private void addWeightedHeight(float[] weightedHeight, float height) -
getHeight
-
vertex
private void vertex(VertexConsumer builder, float x, float y, float z, float red, float green, float blue, float alpha, float u, float v, int light) -
getHeight
private float getHeight(BlockAndTintGetter level, Fluid fluidType, BlockPos pos, BlockState state, FluidState fluidState) -
vertex
private void vertex(VertexConsumer builder, float x, float y, float z, int color, float u, float v, int lightCoords) -
getLightCoords
-