程序包 org.bukkit.block.data

# 接口 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()` 来获取这个方块所有可能的朝向.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Set<BlockFace>`
  `getFaces()`
  获取可应用于此方块的朝向.
  `@NotNull BlockFace`
  `getFacing()`
  获取方块朝向属性.
  `void`
  `setFacing(@NotNull BlockFace facing)`
  设置方块的朝向.

  ### 从接口继承的方法 org.bukkit.block.data.BlockData

  `clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate`

- ## 方法详细资料

  - ### getFacing

    @NotNull @NotNull BlockFace getFacing()
    获取方块朝向属性.

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

    返回:
      方块朝向属性

  - ### setFacing

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

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

    参数:
      `facing` - 方块的朝向

  - ### getFaces

    @NotNull @NotNull Set<BlockFace> getFaces()
    获取可应用于此方块的朝向.

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

    返回:
      允许的朝向值