类 ClientFluidTests.WaterGlassBlock

所有已实现的接口:
FeatureElement, ItemLike, IBlockExtension
封闭类:
ClientFluidTests

static class ClientFluidTests.WaterGlassBlock extends TransparentBlock
  • 字段详细资料

    • HIDE_DIRECTION

      private static final Direction HIDE_DIRECTION
  • 构造器详细资料

  • 方法详细资料

    • shouldHideAdjacentFluidFace

      public boolean shouldHideAdjacentFluidFace(BlockState state, Direction selfFace, FluidState adjacentFluid)
      从接口复制的说明: IBlockExtension
      Determines if a fluid adjacent to the block on the given side should not be rendered.
      参数:
      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
      返回:
      true if this block should cause the fluid's face to not render