枚举的使用
org.bukkit.block.BlockFace
程序包
说明
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.各种方块的 BlockData 类.
与部分方块或方块集有关的特定的 BlockData 类.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
与特定物种有关的类.
提供多种目的和单一目的的类以简化各种编程概念.
-
org.bukkit.block中BlockFace的使用
修饰符和类型方法说明获取本方块的哪一面朝向给定的方块.BlockFace.getOppositeFace()
Skull.getRotation()
已过时。static BlockFace
返回带有指定名称的该类型的枚举常量。static BlockFace[]
BlockFace.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明boolean
Block.applyBoneMeal
(@NotNull BlockFace face) 模拟使用骨粉向本方块施肥 (若可能).int
Block.getBlockPower
(@NotNull BlockFace face) 返回提供给方块某一面的红石充能等级.Block.getRelative
(@NotNull BlockFace face) 获取这个方块某一面上紧邻的方块.Block.getRelative
(@NotNull BlockFace face, int distance) 获取这个方块某一面上指定距离的方块.boolean
Block.isBlockFaceIndirectlyPowered
(@NotNull BlockFace face) 返回方块的其中一面是否被红石间接充能.boolean
Block.isBlockFacePowered
(@NotNull BlockFace face) 返回方块的其中一面是否被红石充能.boolean
Ring this bell.boolean
Ring this bell.void
Skull.setRotation
(@NotNull BlockFace rotation) 已过时。请使用BlockData
-
org.bukkit.block.data中BlockFace的使用
修饰符和类型方法说明MultipleFacing.getAllowedFaces()
Gets all of this faces which may be set on this block.Directional.getFaces()
获取可应用于此方块的朝向.MultipleFacing.getFaces()
Get all of the faces which are enabled on this block.修饰符和类型方法说明boolean
Checks if this block has the specified face enabled.boolean
BlockData.isFaceSturdy
(@NotNull BlockFace face, @NotNull BlockSupport support) 检查状态的BlockFace
是否能够为相邻的方块状态提供特定级别的BlockSupport
。void
Set whether this block has the specified face enabled.void
设置方块的朝向.void
Rotatable.setRotation
(@NotNull BlockFace rotation) 设置 'rotation' 属性值. -
org.bukkit.block.data.type中BlockFace的使用
修饰符和类型方法说明PointedDripstone.getVerticalDirection()
Gets the value of the 'vertical_direction' property.修饰符和类型方法说明RedstoneWire.getAllowedFaces()
获取该方块所有可以连接的方块朝向.PointedDripstone.getVerticalDirections()
Gets the faces which are applicable to this block.修饰符和类型方法说明查看指定方块朝向上的连接类型.获取墙在指定朝向上的高度.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的使用
修饰符和类型方法说明Shulker.getAttachedFace()
Gets the face to which the shulker is attached.Entity.getFacing()
Get the closest cardinalBlockFace
direction an entity is currently facing.修饰符和类型方法说明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的使用
修饰符和类型方法说明BellRingEvent.getDirection()
Get the direction in which the bell was rung.BlockPistonEvent.getDirection()
返回活塞的朝向.BlockFromToEvent.getFace()
获取方块想要移动到的朝向
.限定符构造器说明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的使用
修饰符和类型方法说明EntityPlaceEvent.getBlockFace()
返回实体被放置在的方块的朝向.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.限定符构造器说明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的使用
限定符构造器说明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的使用
修饰符和类型方法说明PlayerBucketEvent.getBlockFace()
获取方块被点击的面.PlayerInteractEvent.getBlockFace()
返回被点击的方块的朝向.限定符构造器说明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的使用
修饰符和类型字段说明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
已过时。修饰符和类型方法说明Stairs.getAscendingDirection()
已过时。Attachable.getAttachedFace()
Gets the face that this block is attached onBanner.getAttachedFace()
已过时。Button.getAttachedFace()
已过时。Gets the face that this block is attached onCocoaPlant.getAttachedFace()
已过时。Ladder.getAttachedFace()
已过时。Gets the face that this block is attached onLever.getAttachedFace()
已过时。Gets the face that this block is attached onPistonExtensionMaterial.getAttachedFace()
已过时。Sign.getAttachedFace()
已过时。Gets the face that this block is attached onTorch.getAttachedFace()
已过时。Gets the face that this block is attached onTrapDoor.getAttachedFace()
已过时。TripwireHook.getAttachedFace()
已过时。Stairs.getDescendingDirection()
已过时。Rails.getDirection()
已过时。Tree.getDirection()
已过时。Get direction of the logBanner.getFacing()
已过时。Bed.getFacing()
已过时。Get the direction that this bed's head is facing towardCocoaPlant.getFacing()
已过时。Comparator.getFacing()
已过时。Gets the direction this comparator is facingDiode.getFacing()
已过时。Gets the direction this diode is facingDirectional.getFacing()
Gets the direction this block is facingDirectionalContainer.getFacing()
已过时。Dispenser.getFacing()
已过时。Door.getFacing()
已过时。获取门的朝向.Gate.getFacing()
已过时。Hopper.getFacing()
已过时。Gets the direction this hopper is facingObserver.getFacing()
已过时。PistonBaseMaterial.getFacing()
已过时。PistonExtensionMaterial.getFacing()
已过时。Pumpkin.getFacing()
已过时。Sign.getFacing()
已过时。Gets the direction that this sign is currently facingSimpleAttachableMaterialData.getFacing()
已过时。Skull.getFacing()
已过时。Stairs.getFacing()
已过时。Door.getHingeCorner()
已过时。不应使用此方法;请使用hinge/facing对应的getter修饰符和类型方法说明boolean
Mushroom.isFacePainted
(BlockFace face) 已过时。Checks whether a face of the block is painted with cap texture.boolean
已过时。Check if the vine is attached to the specified face of an adjacent block.void
已过时。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 tracksvoid
Tree.setDirection
(BlockFace dir) 已过时。Set direction of the logvoid
Mushroom.setFacePainted
(BlockFace face, boolean painted) 已过时。Use MushroomBlockType cap optionsvoid
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 towardvoid
CocoaPlant.setFacingDirection
(BlockFace face) 已过时。void
Comparator.setFacingDirection
(BlockFace face) 已过时。Sets the direction this comparator is facingvoid
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 invoid
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 facingvoid
Ladder.setFacingDirection
(BlockFace face) 已过时。Sets the direction this ladder is facingvoid
Lever.setFacingDirection
(BlockFace face) 已过时。Sets the direction this lever is pointing invoid
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 facingvoid
Torch.setFacingDirection
(BlockFace face) 已过时。void
TrapDoor.setFacingDirection
(BlockFace face) 已过时。void
TripwireHook.setFacingDirection
(BlockFace face) 已过时。限定符构造器说明已过时。Instantiate a bed facing in a particular 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.已过时。Constructs a diode switched off, with a delay of 1 and facing the specified direction.已过时。Constructs a diode switched off, with the specified delay and facing the specified direction.已过时。Constructs a diode switched on or off, with the specified delay and facing the specified direction.已过时。已过时。以指定材质和朝向构造门的下半部分(关着的门).已过时。以指定材质和朝向构造门的下半部分,并设置这个门关着还是开着.Door
(TreeSpecies species, BlockFace face) 已过时。以指定树种和朝向构造一个木门的下半部分(关着的门).Door
(TreeSpecies species, BlockFace face, boolean isOpen) 已过时。以指定树种和朝向构造门的下半部分,并设置这个门关着还是开着.EnderChest
(BlockFace direction) 已过时。实例化一个指定朝向的末影箱.已过时。以指定朝向实例化一个熔炉.已过时。Constructs a hopper facing the specified direction and initially active.已过时。Constructs a hopper facing the specified direction and either active or not.已过时。Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.已过时。已过时。以指定朝向实例化一个南瓜.SimpleAttachableMaterialData
(Material type, 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) 已过时。已过时。 -
org.bukkit.material.types中BlockFace的使用
修饰符和类型方法说明static @Nullable MushroomBlockTexture
MushroomBlockTexture.getCapByFace
(@Nullable BlockFace face) 获取关于指定方块朝向的蘑菇盖的 MushroomBlockType. -
org.bukkit.util中BlockFace的使用
修饰符和类型方法说明Expands this bounding box in the direction specified by the given block face.限定符构造器说明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) 创建一个射线跟踪器结果.
BlockData