程序包 org.bukkit.block.data

# 接口 MultipleFacing

所有超级接口:
  `BlockData`, `Cloneable`

所有已知子接口:
  `Fence`, `Fire`, `GlassPane`, `GlowLichen`, `SculkVein`, `Tripwire`

public interface MultipleFacing extends BlockData
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.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Set<BlockFace>`
  `getAllowedFaces()`
  Gets all of this faces which may be set on this block.
  `@NotNull Set<BlockFace>`
  `getFaces()`
  Get all of the faces which are enabled on this block.
  `boolean`
  `hasFace(@NotNull BlockFace face)`
  Checks if this block has the specified face enabled.
  `void`
  `setFace(@NotNull BlockFace face, boolean has)`
  Set whether this block has the specified face enabled.

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### hasFace

    boolean hasFace(@NotNull @NotNull BlockFace face)
    Checks if this block has the specified face enabled.
    参数:
      `face` - to check
    返回:
      if face is enabled

  - ### setFace

    void setFace(@NotNull @NotNull BlockFace face, boolean has)
    Set whether this block has the specified face enabled.
    参数:
      `face` - to set
      `has` - the face

  - ### getFaces

    @NotNull @NotNull Set<BlockFace> 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