# 枚举的使用
org.bukkit.block.BlockFace

使用BlockFace的程序包
程序包
说明
org.bukkit.block
用于操作在`世界`内的三位像素(方块)，包括一些特定的状态.
org.bukkit.block.data
各种方块的 BlockData 类.
org.bukkit.block.data.type
与部分方块或方块集有关的特定的 BlockData 类.
org.bukkit.entity
为在`世界`内存在的非三维像素单位(实体)提供的接口，包含玩家、怪物、抛射物等.
org.bukkit.event.block
与`方块`被改变或与`世界`进行交互等情况相关的`事件`.
org.bukkit.event.entity
与`实体`相关的`事件`，不包括 一些直接引用的更具体的实体类型.
org.bukkit.event.hanging
与`悬挂实体`相关的`事件`.
org.bukkit.event.player
与`玩家`相关的`事件`.
org.bukkit.material
代表每种体素(意义可参考维基百科或百度百科相关条目，即物品被抽象为体素)的种类和状态.
org.bukkit.material.types
与特定物种有关的类.
org.bukkit.util
提供多种目的和单一目的的类以简化各种编程概念.

- ## org.bukkit.block中BlockFace的使用

  返回BlockFace的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `@Nullable BlockFace`
  Block.`getFace(@NotNull Block block)`
  获取本方块的哪一面朝向给定的方块.
  `@NotNull BlockFace`
  BlockFace.`getOppositeFace()`
  `@NotNull BlockFace`
  Skull.`getRotation()`
  已过时。
  请使用 `BlockData`
  `static BlockFace`
  BlockFace.`valueOf(String name)`
  返回带有指定名称的该类型的枚举常量。
  `static BlockFace[]`
  BlockFace.`values()`
  按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
  参数类型为BlockFace的org.bukkit.block中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  Block.`applyBoneMeal(@NotNull BlockFace face)`
  模拟使用骨粉向本方块施肥 (若可能).
  `int`
  Block.`getBlockPower(@NotNull BlockFace face)`
  返回提供给方块某一面的红石充能等级.
  `@NotNull Block`
  Block.`getRelative(@NotNull BlockFace face)`
  获取这个方块某一面上紧邻的方块.
  `@NotNull Block`
  Block.`getRelative(@NotNull BlockFace face, int distance)`
  获取这个方块某一面上指定距离的方块.
  `boolean`
  Block.`isBlockFaceIndirectlyPowered(@NotNull BlockFace face)`
  返回方块的其中一面是否被红石间接充能.
  `boolean`
  Block.`isBlockFacePowered(@NotNull BlockFace face)`
  返回方块的其中一面是否被红石充能.
  `boolean`
  Bell.`ring(@Nullable BlockFace direction)`
  Ring this bell.
  `boolean`
  Bell.`ring(@Nullable Entity entity, @Nullable BlockFace direction)`
  Ring this bell.
  `void`
  Skull.`setRotation(@NotNull BlockFace rotation)`
  已过时。
  请使用 `BlockData`

- ## org.bukkit.block.data中BlockFace的使用

  返回BlockFace的org.bukkit.block.data中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  Directional.`getFacing()`
  获取方块朝向属性.
  `@NotNull BlockFace`
  Rotatable.`getRotation()`
  获取 'rotation' 属性值.
  返回变量类型为BlockFace的类型的org.bukkit.block.data中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Set<BlockFace>`
  MultipleFacing.`getAllowedFaces()`
  Gets all of this faces which may be set on this block.
  `@NotNull Set<BlockFace>`
  Directional.`getFaces()`
  获取可应用于此方块的朝向.
  `@NotNull Set<BlockFace>`
  MultipleFacing.`getFaces()`
  Get all of the faces which are enabled on this block.
  参数类型为BlockFace的org.bukkit.block.data中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  MultipleFacing.`hasFace(@NotNull BlockFace face)`
  Checks if this block has the specified face enabled.
  `boolean`
  BlockData.`isFaceSturdy(@NotNull BlockFace face, @NotNull BlockSupport support)`
  检查状态的 `BlockFace` 是否能够为相邻的方块状态提供特定级别的 `BlockSupport`。
  `void`
  MultipleFacing.`setFace(@NotNull BlockFace face, boolean has)`
  Set whether this block has the specified face enabled.
  `void`
  Directional.`setFacing(@NotNull BlockFace facing)`
  设置方块的朝向.
  `void`
  Rotatable.`setRotation(@NotNull BlockFace rotation)`
  设置 'rotation' 属性值.

- ## org.bukkit.block.data.type中BlockFace的使用

  返回BlockFace的org.bukkit.block.data.type中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  PointedDripstone.`getVerticalDirection()`
  Gets the value of the 'vertical_direction' property.
  返回变量类型为BlockFace的类型的org.bukkit.block.data.type中的方法
  修饰符和类型
  方法
  说明
  `@NotNull Set<BlockFace>`
  RedstoneWire.`getAllowedFaces()`
  获取该方块所有可以连接的方块朝向.
  `@NotNull Set<BlockFace>`
  PointedDripstone.`getVerticalDirections()`
  Gets the faces which are applicable to this block.
  参数类型为BlockFace的org.bukkit.block.data.type中的方法
  修饰符和类型
  方法
  说明
  `@NotNull RedstoneWire.Connection`
  RedstoneWire.`getFace(@NotNull BlockFace face)`
  查看指定方块朝向上的连接类型.
  `@NotNull Wall.Height`
  Wall.`getHeight(@NotNull BlockFace face)`
  获取墙在指定朝向上的高度.
  `void`
  RedstoneWire.`setFace(@NotNull BlockFace face, @NotNull RedstoneWire.Connection connection)`
  设置指定方块朝向上的连接类型.
  `void`
  Wall.`setHeight(@NotNull BlockFace face, @NotNull Wall.Height height)`
  设置墙在指定朝向上的高度.
  `void`
  PointedDripstone.`setVerticalDirection(@NotNull BlockFace direction)`
  Sets the value of the 'vertical_direction' property.

- ## org.bukkit.entity中BlockFace的使用

  返回BlockFace的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  Shulker.`getAttachedFace()`
  Gets the face to which the shulker is attached.
  `@NotNull BlockFace`
  Entity.`getFacing()`
  Get the closest cardinal `BlockFace` direction an entity is currently facing.
  参数类型为BlockFace的org.bukkit.entity中的方法
  修饰符和类型
  方法
  说明
  `void`
  Shulker.`setAttachedFace(@NotNull BlockFace face)`
  Sets the face to which the shulker is attached.
  `boolean`
  Hanging.`setFacingDirection(@NotNull BlockFace face, boolean force)`
  设置悬挂实体的方向，这可能会重写所有规则.

- ## org.bukkit.event.block中BlockFace的使用

  声明为BlockFace的org.bukkit.event.block中的字段
  修饰符和类型
  字段
  说明
  `protected BlockFace`
  BlockFromToEvent.`face`
  返回BlockFace的org.bukkit.event.block中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  BellRingEvent.`getDirection()`
  Get the direction in which the bell was rung.
  `@NotNull BlockFace`
  BlockPistonEvent.`getDirection()`
  返回活塞的朝向.
  `@NotNull BlockFace`
  BlockFromToEvent.`getFace()`
  获取方块想要移动到的`朝向`.
  参数类型为BlockFace的org.bukkit.event.block中的构造器
  限定符
  构造器
  说明
  ``
  `BellRingEvent(@NotNull Block theBlock, @NotNull BlockFace direction, @Nullable Entity entity)`
  ``
  `BlockFromToEvent(@NotNull Block block, @NotNull BlockFace face)`
  ``
  `BlockPistonEvent(@NotNull Block block, @NotNull BlockFace direction)`
  ``
  `BlockPistonExtendEvent(@NotNull Block block, int length, @NotNull BlockFace direction)`
  已过时。
  ``
  `BlockPistonExtendEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)`
  ``
  `BlockPistonRetractEvent(@NotNull Block block, @NotNull List<Block> blocks, @NotNull BlockFace direction)`

- ## org.bukkit.event.entity中BlockFace的使用

  返回BlockFace的org.bukkit.event.entity中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  EntityPlaceEvent.`getBlockFace()`
  返回实体被放置在的方块的朝向.
  `@Nullable BlockFace`
  ProjectileHitEvent.`getHitBlockFace()`
  Gets the block face that was hit, if it was a block that was hit and the face was provided in the event.
  参数类型为BlockFace的org.bukkit.event.entity中的构造器
  限定符
  构造器
  说明
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace)`
  已过时。
  ``
  `EntityPlaceEvent(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand)`
  ``
  `ExpBottleEvent(@NotNull ThrownExpBottle bottle, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, int exp)`
  ``
  `LingeringPotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull AreaEffectCloud entity)`
  ``
  `PotionSplashEvent(@NotNull ThrownPotion potion, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace, @NotNull Map<LivingEntity,Double> affectedEntities)`
  ``
  `ProjectileHitEvent(@NotNull Projectile projectile, @Nullable Entity hitEntity, @Nullable Block hitBlock, @Nullable BlockFace hitFace)`

- ## org.bukkit.event.hanging中BlockFace的使用

  返回BlockFace的org.bukkit.event.hanging中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  HangingPlaceEvent.`getBlockFace()`
  返回这个悬挂实体被放置在的方块的朝向.
  参数类型为BlockFace的org.bukkit.event.hanging中的构造器
  限定符
  构造器
  说明
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand)`
  已过时。
  ``
  `HangingPlaceEvent(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand, @Nullable ItemStack itemStack)`

- ## org.bukkit.event.player中BlockFace的使用

  声明为BlockFace的org.bukkit.event.player中的字段
  修饰符和类型
  字段
  说明
  `protected BlockFace`
  PlayerInteractEvent.`blockFace`
  返回BlockFace的org.bukkit.event.player中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BlockFace`
  PlayerBucketEvent.`getBlockFace()`
  获取方块被点击的面.
  `@NotNull BlockFace`
  PlayerInteractEvent.`getBlockFace()`
  返回被点击的方块的朝向.
  参数类型为BlockFace的org.bukkit.event.player中的构造器
  限定符
  构造器
  说明
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEmptyEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand)`
  已过时。
  ``
  `PlayerBucketFillEvent(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand)`
  ``
  `PlayerInteractEvent(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Vector clickedPosition)`

- ## org.bukkit.material中BlockFace的使用

  声明为BlockFace的org.bukkit.material中的字段
  修饰符和类型
  字段
  说明
  `protected static final BlockFace`
  Comparator.`DEFAULT_DIRECTION`
  已过时。
  `protected static final BlockFace`
  Diode.`DEFAULT_DIRECTION`
  已过时。
  `protected static final BlockFace`
  Hopper.`DEFAULT_DIRECTION`
  已过时。
  `protected static final BlockFace`
  Tree.`DEFAULT_DIRECTION`
  已过时。
  返回BlockFace的org.bukkit.material中的方法
  修饰符和类型
  方法
  说明
  `BlockFace`
  Stairs.`getAscendingDirection()`
  已过时。
  `@NotNull BlockFace`
  Attachable.`getAttachedFace()`
  Gets the face that this block is attached on
  `BlockFace`
  Banner.`getAttachedFace()`
  已过时。
  `BlockFace`
  Button.`getAttachedFace()`
  已过时。
  Gets the face that this block is attached on
  `BlockFace`
  CocoaPlant.`getAttachedFace()`
  已过时。
  `BlockFace`
  Ladder.`getAttachedFace()`
  已过时。
  Gets the face that this block is attached on
  `BlockFace`
  Lever.`getAttachedFace()`
  已过时。
  Gets the face that this block is attached on
  `BlockFace`
  PistonExtensionMaterial.`getAttachedFace()`
  已过时。
  `BlockFace`
  Sign.`getAttachedFace()`
  已过时。
  Gets the face that this block is attached on
  `BlockFace`
  Torch.`getAttachedFace()`
  已过时。
  Gets the face that this block is attached on
  `BlockFace`
  TrapDoor.`getAttachedFace()`
  已过时。
  `BlockFace`
  TripwireHook.`getAttachedFace()`
  已过时。
  `BlockFace`
  Stairs.`getDescendingDirection()`
  已过时。
  `BlockFace`
  Rails.`getDirection()`
  已过时。
  `BlockFace`
  Tree.`getDirection()`
  已过时。
  Get direction of the log
  `BlockFace`
  Banner.`getFacing()`
  已过时。
  `BlockFace`
  Bed.`getFacing()`
  已过时。
  Get the direction that this bed's head is facing toward
  `BlockFace`
  CocoaPlant.`getFacing()`
  已过时。
  `BlockFace`
  Comparator.`getFacing()`
  已过时。
  Gets the direction this comparator is facing
  `BlockFace`
  Diode.`getFacing()`
  已过时。
  Gets the direction this diode is facing
  `@NotNull BlockFace`
  Directional.`getFacing()`
  Gets the direction this block is facing
  `BlockFace`
  DirectionalContainer.`getFacing()`
  已过时。
  `BlockFace`
  Dispenser.`getFacing()`
  已过时。
  `BlockFace`
  Door.`getFacing()`
  已过时。
  获取门的朝向.
  `BlockFace`
  Gate.`getFacing()`
  已过时。
  `BlockFace`
  Hopper.`getFacing()`
  已过时。
  Gets the direction this hopper is facing
  `BlockFace`
  Observer.`getFacing()`
  已过时。
  `BlockFace`
  PistonBaseMaterial.`getFacing()`
  已过时。
  `BlockFace`
  PistonExtensionMaterial.`getFacing()`
  已过时。
  `BlockFace`
  Pumpkin.`getFacing()`
  已过时。
  `BlockFace`
  Sign.`getFacing()`
  已过时。
  Gets the direction that this sign is currently facing
  `BlockFace`
  SimpleAttachableMaterialData.`getFacing()`
  已过时。
  `BlockFace`
  Skull.`getFacing()`
  已过时。
  `BlockFace`
  Stairs.`getFacing()`
  已过时。
  `BlockFace`
  Door.`getHingeCorner()`
  已过时。
  不应使用此方法;请使用hinge/facing对应的getter
  返回变量类型为BlockFace的类型的org.bukkit.material中的方法
  修饰符和类型
  方法
  说明
  `Set<BlockFace>`
  Mushroom.`getPaintedFaces()`
  已过时。
  参数类型为BlockFace的org.bukkit.material中的方法
  修饰符和类型
  方法
  说明
  `boolean`
  Mushroom.`isFacePainted(BlockFace face)`
  已过时。
  Checks whether a face of the block is painted with cap texture.
  `boolean`
  Vine.`isOnFace(BlockFace face)`
  已过时。
  Check if the vine is attached to the specified face of an adjacent block.
  `void`
  Vine.`putOnFace(BlockFace face)`
  已过时。
  Attach the vine to the specified face of an adjacent block.
  `void`
  Vine.`removeFromFace(BlockFace face)`
  已过时。
  Detach the vine from the specified face of an adjacent block.
  `void`
  ExtendedRails.`setDirection(BlockFace face, boolean isOnSlope)`
  已过时。
  `void`
  Rails.`setDirection(BlockFace face, boolean isOnSlope)`
  已过时。
  Set the direction of these tracks
  `void`
  Tree.`setDirection(BlockFace dir)`
  已过时。
  Set direction of the log
  `void`
  Mushroom.`setFacePainted(BlockFace face, boolean painted)`
  已过时。
  Use MushroomBlockType cap options
  `void`
  Banner.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Bed.`setFacingDirection(BlockFace face)`
  已过时。
  Set which direction the head of the bed is facing.
  `void`
  Button.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this button is pointing toward
  `void`
  CocoaPlant.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Comparator.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this comparator is facing
  `void`
  Diode.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this diode is facing.
  `void`
  Directional.`setFacingDirection(@NotNull BlockFace face)`
  Sets the direction that this block is facing in
  `void`
  DirectionalContainer.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Dispenser.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Door.`setFacingDirection(BlockFace face)`
  已过时。
  设置门的朝向.
  `void`
  Gate.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Hopper.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this hopper is facing
  `void`
  Ladder.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this ladder is facing
  `void`
  Lever.`setFacingDirection(BlockFace face)`
  已过时。
  Sets the direction this lever is pointing in
  `void`
  Observer.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  PistonBaseMaterial.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  PistonExtensionMaterial.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Pumpkin.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Sign.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Skull.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  Stairs.`setFacingDirection(BlockFace face)`
  已过时。
  Set the direction the stair part of the block is facing
  `void`
  Torch.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  TrapDoor.`setFacingDirection(BlockFace face)`
  已过时。
  `void`
  TripwireHook.`setFacingDirection(BlockFace face)`
  已过时。
  参数类型为BlockFace的org.bukkit.material中的构造器
  限定符
  构造器
  说明
  ``
  `Bed(BlockFace direction)`
  已过时。
  Instantiate a bed facing in a particular direction.
  ``
  `Chest(BlockFace direction)`
  已过时。
  实例化一个特定朝向的箱子.
  ``
  `CocoaPlant(CocoaPlant.CocoaPlantSize sz, BlockFace dir)`
  已过时。
  ``
  `Comparator(BlockFace facingDirection)`
  已过时。
  Constructs a comparator switched off, with the default mode (normal) and facing the specified direction.
  ``
  `Comparator(BlockFace facingDirection, boolean isSubtraction)`
  已过时。
  Constructs a comparator switched off, with the specified mode and facing the specified direction.
  ``
  `Comparator(BlockFace facingDirection, boolean isSubtraction, boolean state)`
  已过时。
  Constructs a comparator switched on or off, with the specified mode and facing the specified direction.
  ``
  `Diode(BlockFace facingDirection)`
  已过时。
  Constructs a diode switched off, with a delay of 1 and facing the specified direction.
  ``
  `Diode(BlockFace facingDirection, int delay)`
  已过时。
  Constructs a diode switched off, with the specified delay and facing the specified direction.
  ``
  `Diode(BlockFace facingDirection, int delay, boolean state)`
  已过时。
  Constructs a diode switched on or off, with the specified delay and facing the specified direction.
  ``
  `Dispenser(BlockFace direction)`
  已过时。
  ``
  `Door(Material type, BlockFace face)`
  已过时。
  以指定材质和朝向构造门的下半部分(关着的门).
  ``
  `Door(Material type, BlockFace face, boolean isOpen)`
  已过时。
  以指定材质和朝向构造门的下半部分，并设置这个门关着还是开着.
  ``
  `Door(TreeSpecies species, BlockFace face)`
  已过时。
  以指定树种和朝向构造一个木门的下半部分(关着的门).
  ``
  `Door(TreeSpecies species, BlockFace face, boolean isOpen)`
  已过时。
  以指定树种和朝向构造门的下半部分，并设置这个门关着还是开着.
  ``
  `EnderChest(BlockFace direction)`
  已过时。
  实例化一个指定朝向的末影箱.
  ``
  `Furnace(BlockFace direction)`
  已过时。
  以指定朝向实例化一个熔炉.
  ``
  `Hopper(BlockFace facingDirection)`
  已过时。
  Constructs a hopper facing the specified direction and initially active.
  ``
  `Hopper(BlockFace facingDirection, boolean isActive)`
  已过时。
  Constructs a hopper facing the specified direction and either active or not.
  ``
  `Mushroom(Material shroom, BlockFace capFace)`
  已过时。
  Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.
  ``
  `Observer(BlockFace direction)`
  已过时。
  ``
  `Pumpkin(BlockFace direction)`
  已过时。
  以指定朝向实例化一个南瓜.
  ``
  `SimpleAttachableMaterialData(Material type, BlockFace direction)`
  已过时。
  ``
  `Skull(BlockFace direction)`
  已过时。
  Instantiate a skull facing in a particular direction.
  ``
  `Tree(Material type, TreeSpecies species, BlockFace dir)`
  已过时。
  Constructs a tree block of the given type and tree species, and facing the given direction.
  ``
  `Tree(TreeSpecies species, BlockFace dir)`
  已过时。
  Constructs a tree block of the given tree species, and facing the given direction.
  ``
  `TripwireHook(BlockFace dir)`
  已过时。
  ``
  `Vine(BlockFace... faces)`
  已过时。
  类型变量类型为BlockFace的org.bukkit.material中的构造器参数
  限定符
  构造器
  说明
  ``
  `Vine(EnumSet<BlockFace> faces)`
  已过时。

- ## org.bukkit.material.types中BlockFace的使用

  返回BlockFace的org.bukkit.material.types中的方法
  修饰符和类型
  方法
  说明
  `@Nullable BlockFace`
  MushroomBlockTexture.`getCapFace()`
  获取这个材质所对的朝向.
  参数类型为BlockFace的org.bukkit.material.types中的方法
  修饰符和类型
  方法
  说明
  `static @Nullable MushroomBlockTexture`
  MushroomBlockTexture.`getCapByFace(@Nullable BlockFace face)`
  获取关于指定方块朝向的蘑菇盖的 MushroomBlockType.

- ## org.bukkit.util中BlockFace的使用

  返回BlockFace的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `@Nullable BlockFace`
  RayTraceResult.`getHitBlockFace()`
  获取命中方块的方向.
  参数类型为BlockFace的org.bukkit.util中的方法
  修饰符和类型
  方法
  说明
  `@NotNull BoundingBox`
  BoundingBox.`expand(@NotNull BlockFace blockFace, double expansion)`
  Expands this bounding box in the direction specified by the given block face.
  参数类型为BlockFace的org.bukkit.util中的构造器
  限定符
  构造器
  说明
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable BlockFace hitBlockFace)`
  创建一个射线跟踪器结果.
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable Block hitBlock, @Nullable BlockFace hitBlockFace)`
  创建一个射线跟踪器结果.
  ``
  `RayTraceResult(@NotNull Vector hitPosition, @Nullable Entity hitEntity, @Nullable BlockFace hitBlockFace)`
  创建一个射线跟踪器结果.