接口 MultipleFacing

所有超级接口:
BlockData, Cloneable
所有已知子接口:
Fence, Fire, GlassPane, GlowLichen, ResinClump, SculkVein, Tripwire

public interface MultipleFacing extends BlockData
这个类包含了 'north', 'east', 'south', 'west', 'up', 'down' 布尔标志,用于设置方块的哪些面显示纹理。
有些方块可能不能在所有方向上都有面,使用 getAllowedFaces() 来获取这个方块所有可能的面。在非允许的面上调用任何方法都是无效的。 原文:This class encompasses the 'north', 'east', 'south', 'west', 'up', 'down' boolean flags which are used to set which faces of the block textures are displayed on.
Some blocks may not be able to have faces on all directions, use getAllowedFaces() to get all possible faces for this block. It is not valid to call any methods on non-allowed faces.
  • 方法详细资料

    • hasFace

      boolean hasFace(@NotNull @NotNull BlockFace face)
      检查此方块是否启用了指定的面。 原文:Checks if this block has the specified face enabled.
      参数:
      face - 要检查的面 原文:face to check
      返回:
      如果面已启用则返回true 原文:if face is enabled
    • setFace

      void setFace(@NotNull @NotNull BlockFace face, boolean has)
      设置此方块是否启用指定的面。 原文:Set whether this block has the specified face enabled.
      参数:
      face - 要设置的面 原文:face to set
      has - 是否有该面 原文:the face
    • getFaces

      获取此方块上所有启用的面。 原文:Get all of the faces which are enabled on this block.
      返回:
      所有启用的面 原文:all faces enabled
    • getAllowedFaces

      @NotNull @NotNull Set<BlockFace> getAllowedFaces()
      获取此方块上所有可能设置的面。 原文:Gets all of this faces which may be set on this block.
      返回:
      所有允许的面 原文:all allowed faces