Class LiquidBlockRenderer
java.lang.Object
net.minecraft.client.renderer.block.LiquidBlockRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final TextureAtlasSprite[]
private static final float
private final TextureAtlasSprite[]
private TextureAtlasSprite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addWeightedHeight
(float[] p_203189_, float p_203190_) private float
calculateAverageHeight
(BlockAndTintGetter p_203150_, Fluid p_203151_, float p_203152_, float p_203153_, float p_203154_, BlockPos p_203155_) private float
getHeight
(BlockAndTintGetter p_203157_, Fluid p_203158_, BlockPos p_203159_) private float
getHeight
(BlockAndTintGetter p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) private int
getLightColor
(BlockAndTintGetter p_110946_, BlockPos p_110947_) private static boolean
isFaceOccludedByNeighbor
(BlockGetter p_203180_, BlockPos p_203181_, Direction p_203182_, float p_203183_, BlockState p_203184_) private static boolean
isFaceOccludedBySelf
(BlockGetter p_110960_, BlockPos p_110961_, BlockState p_110962_, Direction p_110963_) private static boolean
isFaceOccludedByState
(BlockGetter p_110979_, Direction p_110980_, float p_110981_, BlockPos p_110982_, BlockState p_110983_) private static boolean
isNeighborSameFluid
(FluidState p_203186_, FluidState p_203187_) protected void
static boolean
shouldRenderFace
(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) void
tesselate
(BlockAndTintGetter p_234370_, BlockPos p_234371_, VertexConsumer p_234372_, BlockState p_234373_, FluidState p_234374_) private void
vertex
(VertexConsumer p_110985_, double p_110986_, double p_110987_, double p_110988_, float p_110989_, float p_110990_, float p_110991_, float alpha, float p_110992_, float p_110993_, int p_110994_)
-
Field Details
-
MAX_FLUID_HEIGHT
private static final float MAX_FLUID_HEIGHT- See Also:
-
lavaIcons
-
waterIcons
-
waterOverlay
-
-
Constructor Details
-
LiquidBlockRenderer
public LiquidBlockRenderer()
-
-
Method Details
-
setupSprites
protected void setupSprites() -
isNeighborSameFluid
-
isFaceOccludedByState
private static boolean isFaceOccludedByState(BlockGetter p_110979_, Direction p_110980_, float p_110981_, BlockPos p_110982_, BlockState p_110983_) -
isFaceOccludedByNeighbor
private static boolean isFaceOccludedByNeighbor(BlockGetter p_203180_, BlockPos p_203181_, Direction p_203182_, float p_203183_, BlockState p_203184_) -
isFaceOccludedBySelf
private static boolean isFaceOccludedBySelf(BlockGetter p_110960_, BlockPos p_110961_, BlockState p_110962_, Direction p_110963_) -
shouldRenderFace
public static boolean shouldRenderFace(BlockAndTintGetter p_203167_, BlockPos p_203168_, FluidState p_203169_, BlockState p_203170_, Direction p_203171_, FluidState p_203172_) -
tesselate
public void tesselate(BlockAndTintGetter p_234370_, BlockPos p_234371_, VertexConsumer p_234372_, BlockState p_234373_, FluidState p_234374_) -
calculateAverageHeight
private float calculateAverageHeight(BlockAndTintGetter p_203150_, Fluid p_203151_, float p_203152_, float p_203153_, float p_203154_, BlockPos p_203155_) -
addWeightedHeight
private void addWeightedHeight(float[] p_203189_, float p_203190_) -
getHeight
-
getHeight
private float getHeight(BlockAndTintGetter p_203161_, Fluid p_203162_, BlockPos p_203163_, BlockState p_203164_, FluidState p_203165_) -
vertex
private void vertex(VertexConsumer p_110985_, double p_110986_, double p_110987_, double p_110988_, float p_110989_, float p_110990_, float p_110991_, float alpha, float p_110992_, float p_110993_, int p_110994_) -
getLightColor
-