Package net.minecraft.client.renderer
Class FluidBlockRenderer
java.lang.Object
net.minecraft.client.renderer.FluidBlockRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TextureAtlasSprite[]
private final TextureAtlasSprite[]
private TextureAtlasSprite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getLightColor
(IBlockDisplayReader p_228795_1_, BlockPos p_228795_2_) private float
getWaterHeight
(IBlockReader p_217640_1_, BlockPos p_217640_2_, Fluid p_217640_3_) private static boolean
isFaceOccludedByNeighbor
(IBlockReader p_239283_0_, BlockPos p_239283_1_, Direction p_239283_2_, float p_239283_3_) private static boolean
isFaceOccludedBySelf
(IBlockReader p_239282_0_, BlockPos p_239282_1_, BlockState p_239282_2_, Direction p_239282_3_) private static boolean
isFaceOccludedByState
(IBlockReader p_239284_0_, Direction p_239284_1_, float p_239284_2_, BlockPos p_239284_3_, BlockState p_239284_4_) private static boolean
isNeighborSameFluid
(IBlockReader p_209557_0_, BlockPos p_209557_1_, Direction p_209557_2_, FluidState p_209557_3_) protected void
static boolean
shouldRenderFace
(IBlockDisplayReader p_239281_0_, BlockPos p_239281_1_, FluidState p_239281_2_, BlockState p_239281_3_, Direction p_239281_4_) boolean
tesselate
(IBlockDisplayReader p_228796_1_, BlockPos p_228796_2_, IVertexBuilder p_228796_3_, FluidState p_228796_4_) private void
vertex
(IVertexBuilder p_228797_1_, double p_228797_2_, double p_228797_4_, double p_228797_6_, float p_228797_8_, float p_228797_9_, float p_228797_10_, float p_228797_11_, float p_228797_12_, int p_228797_13_) Deprecated.private void
vertexVanilla
(IVertexBuilder vertexBuilderIn, double x, double y, double z, float red, float green, float blue, float alpha, float u, float v, int packedLight)
-
Field Details
-
lavaIcons
-
waterIcons
-
waterOverlay
-
-
Constructor Details
-
FluidBlockRenderer
public FluidBlockRenderer()
-
-
Method Details
-
setupSprites
protected void setupSprites() -
isNeighborSameFluid
private static boolean isNeighborSameFluid(IBlockReader p_209557_0_, BlockPos p_209557_1_, Direction p_209557_2_, FluidState p_209557_3_) -
isFaceOccludedByState
private static boolean isFaceOccludedByState(IBlockReader p_239284_0_, Direction p_239284_1_, float p_239284_2_, BlockPos p_239284_3_, BlockState p_239284_4_) -
isFaceOccludedByNeighbor
private static boolean isFaceOccludedByNeighbor(IBlockReader p_239283_0_, BlockPos p_239283_1_, Direction p_239283_2_, float p_239283_3_) -
isFaceOccludedBySelf
private static boolean isFaceOccludedBySelf(IBlockReader p_239282_0_, BlockPos p_239282_1_, BlockState p_239282_2_, Direction p_239282_3_) -
shouldRenderFace
public static boolean shouldRenderFace(IBlockDisplayReader p_239281_0_, BlockPos p_239281_1_, FluidState p_239281_2_, BlockState p_239281_3_, Direction p_239281_4_) -
tesselate
public boolean tesselate(IBlockDisplayReader p_228796_1_, BlockPos p_228796_2_, IVertexBuilder p_228796_3_, FluidState p_228796_4_) -
vertex
@Deprecated private void vertex(IVertexBuilder p_228797_1_, double p_228797_2_, double p_228797_4_, double p_228797_6_, float p_228797_8_, float p_228797_9_, float p_228797_10_, float p_228797_11_, float p_228797_12_, int p_228797_13_) Deprecated. -
vertexVanilla
private void vertexVanilla(IVertexBuilder vertexBuilderIn, double x, double y, double z, float red, float green, float blue, float alpha, float u, float v, int packedLight) -
getLightColor
-
getWaterHeight
-