Class ClientFluidTests.WaterGlassBlock

All Implemented Interfaces:
FeatureElement, ItemLike, IBlockExtension
Enclosing class:
ClientFluidTests

static class ClientFluidTests.WaterGlassBlock extends TransparentBlock
  • Field Details

    • HIDE_DIRECTION

      private static final Direction HIDE_DIRECTION
  • Constructor Details

  • Method Details

    • shouldHideAdjacentFluidFace

      public boolean shouldHideAdjacentFluidFace(BlockState state, Direction selfFace, FluidState adjacentFluid)
      Description copied from interface: IBlockExtension
      Determines if a fluid adjacent to the block on the given side should not be rendered.
      Parameters:
      state - the block state of the block
      selfFace - the face of this block that the fluid is adjacent to
      adjacentFluid - the fluid that is touching that face
      Returns:
      true if this block should cause the fluid's face to not render