Class LiquidBlockRenderer

java.lang.Object
net.minecraft.client.renderer.block.LiquidBlockRenderer

public class LiquidBlockRenderer extends Object
  • Field Details

  • Constructor Details

    • LiquidBlockRenderer

      public LiquidBlockRenderer()
  • Method Details

    • setupSprites

      protected void setupSprites()
    • isNeighborSameFluid

      private static boolean isNeighborSameFluid(FluidState firstState, FluidState secondState)
    • isNeighborStateHidingOverlay

      private static boolean isNeighborStateHidingOverlay(FluidState selfState, BlockState otherState, Direction neighborFace)
    • isFaceOccludedByState

      private static boolean isFaceOccludedByState(Direction face, float height, BlockState state)
    • isFaceOccludedByNeighbor

      private static boolean isFaceOccludedByNeighbor(Direction face, float height, BlockState state)
    • isFaceOccludedBySelf

      private static boolean isFaceOccludedBySelf(BlockState state, Direction face)
    • shouldRenderFace

      public static boolean shouldRenderFace(FluidState fluidState, BlockState blockState, Direction side, FluidState neighborFluid)
      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 buffer, BlockState blockState, FluidState fluidState)
    • calculateAverageHeight

      private float calculateAverageHeight(BlockAndTintGetter level, Fluid fluid, float currentHeight, float height1, float height2, BlockPos pos)
    • addWeightedHeight

      private void addWeightedHeight(float[] output, float height)
    • getHeight

      private float getHeight(BlockAndTintGetter level, Fluid fluid, BlockPos pos)
    • vertex

      private void vertex(VertexConsumer p_110985_, float p_110989_, float p_110990_, float p_110991_, float p_110992_, float p_110993_, float p_350595_, float alpha, float p_350459_, float p_350437_, int p_110994_)
    • getHeight

      private float getHeight(BlockAndTintGetter level, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState)
    • vertex

      private void vertex(VertexConsumer buffer, float x, float y, float z, float red, float green, float blue, float u, float v, int packedLight)
    • getLightColor

      private int getLightColor(BlockAndTintGetter level, BlockPos pos)