接口 Orientable

所有超级接口:
BlockData, Cloneable
所有已知子接口:
Chain, CreakingHeart

public interface Orientable extends BlockData
'axis' 表示此方块所朝向的轴。
一些方块如传送门方块可能不能以所有方向放置,使用 getAxes() 来获取所有可能的方向。 原文:'axis' represents the axis along whilst this block is oriented.
Some blocks such as the portal block may not be able to be placed in all orientations, use getAxes() to retrieve all possible such orientations.
  • 方法详细资料

    • getAxis

      获取 'axis' 属性的值。 原文:Gets the value of the 'axis' property.
      返回:
      'axis' 的值 原文:the 'axis' value
    • setAxis

      void setAxis(@NotNull @NotNull Axis axis)
      设置 'axis' 属性的值。 原文:Sets the value of the 'axis' property.
      参数:
      axis - 新的 'axis' 值 原文:the new 'axis' value
    • getAxes

      获取适用于此方块的轴。 原文:Gets the axes which are applicable to this block.
      返回:
      允许的 'axis' 值 原文:the allowed 'axis' values