程序包 org.bukkit.block

# 枚举 BlockFace

java.lang.Object
java.lang.Enum<BlockFace>
org.bukkit.block.BlockFace

所有已实现的接口:
  `Serializable`, `Comparable<BlockFace>`, `Constable`

public enum BlockFace extends Enum<BlockFace>
代表方块的朝向.

- ## 嵌套类概要

  ## 从类继承的嵌套类/接口 java.lang.Enum

  `Enum.EnumDesc<E extends Enum<E>>`

- ## 枚举常量概要

  枚举常量
  枚举常量
  说明
  `DOWN`
  `EAST`
  `EAST_NORTH_EAST`
  `EAST_SOUTH_EAST`
  `NORTH`
  `NORTH_EAST`
  `NORTH_NORTH_EAST`
  `NORTH_NORTH_WEST`
  `NORTH_WEST`
  `SELF`
  `SOUTH`
  `SOUTH_EAST`
  `SOUTH_SOUTH_EAST`
  `SOUTH_SOUTH_WEST`
  `SOUTH_WEST`
  `UP`
  `WEST`
  `WEST_NORTH_WEST`
  `WEST_SOUTH_WEST`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Vector`
  `getDirection()`
  获取与此朝向相对应的单位向量.
  `int`
  `getModX()`
  获取此朝向的X轴坐标偏移量, 用以获取其表示的方块.
  `int`
  `getModY()`
  获取此朝向的Y轴坐标偏移量, 用以获取其表示的方块.
  `int`
  `getModZ()`
  `@NotNull BlockFace`
  `getOppositeFace()`
  `boolean`
  `isCartesian()`
  Returns true if this face is aligned with one of the unit axes in 3D Cartesian space (ie NORTH, SOUTH, EAST, WEST, UP, DOWN).
  `static BlockFace`
  `valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static BlockFace[]`
  `values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。

  ### 从类继承的方法 java.lang.Enum

  `clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

  ### 从类继承的方法 java.lang.Object

  `getClass, notify, notifyAll, wait, wait, wait`

- ## 枚举常量详细资料

  - ### NORTH

    public static final BlockFace NORTH

  - ### EAST

    public static final BlockFace EAST

  - ### SOUTH

    public static final BlockFace SOUTH

  - ### WEST

    public static final BlockFace WEST

  - ### UP

    public static final BlockFace UP

  - ### DOWN

    public static final BlockFace DOWN

  - ### NORTH_EAST

    public static final BlockFace NORTH_EAST

  - ### NORTH_WEST

    public static final BlockFace NORTH_WEST

  - ### SOUTH_EAST

    public static final BlockFace SOUTH_EAST

  - ### SOUTH_WEST

    public static final BlockFace SOUTH_WEST

  - ### WEST_NORTH_WEST

    public static final BlockFace WEST_NORTH_WEST

  - ### NORTH_NORTH_WEST

    public static final BlockFace NORTH_NORTH_WEST

  - ### NORTH_NORTH_EAST

    public static final BlockFace NORTH_NORTH_EAST

  - ### EAST_NORTH_EAST

    public static final BlockFace EAST_NORTH_EAST

  - ### EAST_SOUTH_EAST

    public static final BlockFace EAST_SOUTH_EAST

  - ### SOUTH_SOUTH_EAST

    public static final BlockFace SOUTH_SOUTH_EAST

  - ### SOUTH_SOUTH_WEST

    public static final BlockFace SOUTH_SOUTH_WEST

  - ### WEST_SOUTH_WEST

    public static final BlockFace WEST_SOUTH_WEST

  - ### SELF

    public static final BlockFace SELF

- ## 方法详细资料

  - ### values

    public static BlockFace[] values()
    按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
    返回:
      按照声明该枚举类型的常量的顺序返回的包含这些常量的数组

  - ### valueOf

    public static BlockFace valueOf(String name)
    返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
    参数:
      `name` - 要返回的枚举常量的名称。
    返回:
      返回带有指定名称的枚举常量
    抛出:
      `IllegalArgumentException` - 如果该枚举类型没有带有指定名称的常量
      `NullPointerException` - 如果参数为空值

  - ### getModX

    public int getModX()
    获取此朝向的X轴坐标偏移量, 用以获取其表示的方块.

    原文:Get the amount of X-coordinates to modify to get the represented block

    返回:
      X轴坐标偏移量

  - ### getModY

    public int getModY()
    获取此朝向的Y轴坐标偏移量, 用以获取其表示的方块.

    原文: Get the amount of Y-coordinates to modify to get the represented block

    返回:
      Y轴坐标偏移量

  - ### getModZ

    public int getModZ()

  - ### getDirection

    @NotNull public @NotNull Vector getDirection()
    获取与此朝向相对应的单位向量.

    原文:Gets the normal vector corresponding to this block face.

    返回:
      对应的单位向量

  - ### isCartesian

    public boolean isCartesian()
    Returns true if this face is aligned with one of the unit axes in 3D Cartesian space (ie NORTH, SOUTH, EAST, WEST, UP, DOWN).
    返回:
      Cartesian status

  - ### getOppositeFace

    @NotNull public @NotNull BlockFace getOppositeFace()