接口 Directional

所有超级接口:
BlockData, Cloneable
所有已知子接口:
AmethystCluster, Barrel, Bed, Beehive, Bell, BigDripleaf, CalibratedSculkSensor, Campfire, Chest, ChiseledBookshelf, Cocoa, CommandBlock, Comparator, CoralWallFan, DecoratedPot, Dispenser, Door, Dripleaf, EnderChest, EndPortalFrame, Furnace, Gate, Grindstone, Hopper, Ladder, Lectern, LightningRod, Observer, PinkPetals, Piston, PistonHead, RedstoneWallTorch, Repeater, SmallDripleaf, Stairs, Switch, TechnicalPiston, TrapDoor, TripwireHook, Vault, WallHangingSign, WallSign

public interface Directional extends BlockData
'facing' 代表方块的朝向.
一些方块可能不能够面向东南西北所有方向, 可以用 getFaces() 来获取这个方块所有可能的朝向.
  • 方法详细资料

    • getFacing

      获取方块朝向属性.

      原文: Gets the value of the 'facing' property.

      返回:
      方块朝向属性
    • setFacing

      void setFacing(@NotNull @NotNull BlockFace facing)
      设置方块的朝向.

      原文: Sets the value of the 'facing' property.

      参数:
      facing - 方块的朝向
    • getFaces

      获取可应用于此方块的朝向.

      原文: Gets the faces which are applicable to this block.

      返回:
      允许的朝向值