Class LiquidBlockRenderer
java.lang.Object
net.minecraft.client.renderer.block.LiquidBlockRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprivate TextureAtlasSprite[]
private static float
private TextureAtlasSprite[]
private TextureAtlasSprite
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate int
getLightColor(BlockAndTintGetter p_110946_, BlockPos p_110947_)
private float
getWaterHeight(BlockGetter p_110965_, BlockPos p_110966_, Fluid p_110967_)
private static boolean
isFaceOccludedByNeighbor(BlockGetter p_110969_, BlockPos p_110970_, Direction p_110971_, float p_110972_)
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(BlockGetter p_110974_, BlockPos p_110975_, Direction p_110976_, FluidState p_110977_)
protected void
static boolean
shouldRenderFace(BlockAndTintGetter p_110949_, BlockPos p_110950_, FluidState p_110951_, BlockState p_110952_, Direction p_110953_)
boolean
tesselate(BlockAndTintGetter p_110955_, BlockPos p_110956_, VertexConsumer p_110957_, FluidState p_110958_)
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:
- Constant Field Values
-
lavaIcons
-
waterIcons
-
waterOverlay
-
-
Constructor Details
-
LiquidBlockRenderer
public LiquidBlockRenderer()
-
-
Method Details
-
setupSprites
protected void setupSprites() -
isNeighborSameFluid
private static boolean isNeighborSameFluid(BlockGetter p_110974_, BlockPos p_110975_, Direction p_110976_, FluidState p_110977_) -
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_110969_, BlockPos p_110970_, Direction p_110971_, float p_110972_) -
isFaceOccludedBySelf
private static boolean isFaceOccludedBySelf(BlockGetter p_110960_, BlockPos p_110961_, BlockState p_110962_, Direction p_110963_) -
shouldRenderFace
public static boolean shouldRenderFace(BlockAndTintGetter p_110949_, BlockPos p_110950_, FluidState p_110951_, BlockState p_110952_, Direction p_110953_) -
tesselate
public boolean tesselate(BlockAndTintGetter p_110955_, BlockPos p_110956_, VertexConsumer p_110957_, FluidState p_110958_) -
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
-
getWaterHeight
-