枚举的使用
org.bukkit.block.BlockFace
程序包
说明
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
-
org.bukkit.block中BlockFace的使用
修饰符和类型方法说明Gets the face relation of this block compared to the given block.BlockFace.getOppositeFace()
Skull.getRotation()
获取这个头颅在世界的角度.static BlockFace
返回带有指定名称的该类型的枚举常量。static BlockFace[]
BlockFace.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明int
Block.getBlockPower
(BlockFace face) Returns the redstone power being provided to this block faceBlock.getRelative
(BlockFace face) Gets the block at the given faceBlock.getRelative
(BlockFace face, int distance) Gets the block at the given distance of the given faceboolean
Block.isBlockFaceIndirectlyPowered
(BlockFace face) Returns true if the block face is being indirectly powered by Redstone.boolean
Block.isBlockFacePowered
(BlockFace face) Returns true if the block face is being powered by Redstone.void
Skull.setRotation
(BlockFace rotation) 设置这个头颅在世界的角度. -
org.bukkit.entity中BlockFace的使用
修饰符和类型方法说明boolean
Hanging.setFacingDirection
(BlockFace face, boolean force) 设置悬挂实体的方向,这可能会重写所有规则. -
org.bukkit.event.block中BlockFace的使用
限定符构造器说明BlockFromToEvent
(Block block, BlockFace face) BlockPistonEvent
(Block block, BlockFace direction) BlockPistonExtendEvent
(Block block, int length, BlockFace direction) 已过时。BlockPistonExtendEvent
(Block block, List<Block> blocks, BlockFace direction) BlockPistonRetractEvent
(Block block, List<Block> blocks, BlockFace direction) -
org.bukkit.event.hanging中BlockFace的使用
-
org.bukkit.event.player中BlockFace的使用
修饰符和类型方法说明PlayerBucketEvent.getBlockFace()
获取方块被点击的面.PlayerInteractEvent.getBlockFace()
返回被点击的方块的朝向限定符构造器说明PlayerBucketEmptyEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) PlayerBucketEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) PlayerBucketFillEvent
(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace) PlayerInteractEvent
(Player who, Action action, ItemStack item, Block clickedBlock, BlockFace clickedFace, EquipmentSlot hand) -
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()
获取这个方块附着的朝向.Banner.getAttachedFace()
Button.getAttachedFace()
获取这个方块附着的方向.CocoaPlant.getAttachedFace()
Ladder.getAttachedFace()
获取这个方块附着的方向.Lever.getAttachedFace()
获取这个方块附着的朝向.PistonExtensionMaterial.getAttachedFace()
Sign.getAttachedFace()
获取这个木牌附着的朝向.Torch.getAttachedFace()
获取这个火把附着的朝向.TrapDoor.getAttachedFace()
TripwireHook.getAttachedFace()
Stairs.getDescendingDirection()
Rails.getDirection()
Tree.getDirection()
获取木头的朝向.Banner.getFacing()
Bed.getFacing()
获取床头的朝向。CocoaPlant.getFacing()
Comparator.getFacing()
获取这个红石比较器的朝向.Diode.getFacing()
获取这个红石中继器的朝向.Directional.getFacing()
获取这个方块的朝向.DirectionalContainer.getFacing()
Dispenser.getFacing()
Door.getFacing()
Get the direction that this door is facing.Gate.getFacing()
Hopper.getFacing()
获取这个漏斗的朝向.Observer.getFacing()
PistonBaseMaterial.getFacing()
PistonExtensionMaterial.getFacing()
Pumpkin.getFacing()
Sign.getFacing()
获取这个告示牌当前的朝向.SimpleAttachableMaterialData.getFacing()
Skull.getFacing()
Stairs.getFacing()
Door.getHingeCorner()
已过时。This method should not be used; use hinge and facing accessors instead.修饰符和类型方法说明boolean
Mushroom.isFacePainted
(BlockFace face) Checks whether a face of the block is painted with cap texture.boolean
检测藤蔓是否靠在与其相邻方块的表面.void
使这个藤蔓附着在相邻方块的指定表面.void
Vine.removeFromFace
(BlockFace face) 从相邻的方块的指定表面拆除藤蔓.void
ExtendedRails.setDirection
(BlockFace face, boolean isOnSlope) void
Rails.setDirection
(BlockFace face, boolean isOnSlope) 设置这个轨道的方向.void
Tree.setDirection
(BlockFace dir) 设置木头的朝向.void
Mushroom.setFacePainted
(BlockFace face, boolean painted) 已过时。Use MushroomBlockType cap optionsvoid
Banner.setFacingDirection
(BlockFace face) void
Bed.setFacingDirection
(BlockFace face) 设置床头的朝向.注意这只会影响到两个方块的床。void
Button.setFacingDirection
(BlockFace face) 设置这个按钮所指的方向.void
CocoaPlant.setFacingDirection
(BlockFace face) void
Comparator.setFacingDirection
(BlockFace face) 设置这个红石比较器的朝向.void
Diode.setFacingDirection
(BlockFace face) 设置这个红石中继器的朝向.void
Directional.setFacingDirection
(BlockFace face) 设置这个方块的朝向.void
DirectionalContainer.setFacingDirection
(BlockFace face) void
Dispenser.setFacingDirection
(BlockFace face) void
Door.setFacingDirection
(BlockFace face) Set the direction that this door should is facing.void
Gate.setFacingDirection
(BlockFace face) void
Hopper.setFacingDirection
(BlockFace face) 设置这个漏斗的朝向.void
Ladder.setFacingDirection
(BlockFace face) 设置这个梯子的朝向.void
Lever.setFacingDirection
(BlockFace face) 设置拉杆被指向的方向.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) 设置楼梯部分的朝向.void
Torch.setFacingDirection
(BlockFace face) void
TrapDoor.setFacingDirection
(BlockFace face) void
TripwireHook.setFacingDirection
(BlockFace face) 限定符构造器说明使用特定的朝向以实例化一个床。实例化一个特定朝向的箱子.CocoaPlant
(CocoaPlant.CocoaPlantSize sz, BlockFace dir) Comparator
(BlockFace facingDirection) 构造一个关闭状态的、默认模式指定朝向的红石比较器.Comparator
(BlockFace facingDirection, boolean isSubtraction) 构造一个关闭状态的、指定模式指定朝向的红石比较器.Comparator
(BlockFace facingDirection, boolean isSubtraction, boolean state) 构造一个开启或关闭状态的、指定模式指定朝向的红石比较器.构造一个关闭状态的、1延迟、指定朝向的红石中继器.构造一个关闭状态的、指定延迟、指定朝向的红石中继器.构造一个开启或关闭状态的、指定延迟、指定朝向的红石中继器.构造一个Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closedDoor
(TreeSpecies species, BlockFace face) Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to closedDoor
(TreeSpecies species, BlockFace face, boolean isOpen) Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to open or closedEnderChest
(BlockFace direction) 实例化一个特定朝向的末影箱.实例化一个特定朝向的熔炉.构造一个指定朝向、激活的漏斗.构造一个指定朝向、指定激活状态的漏斗.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.实例化一个特定朝向的南瓜.SimpleAttachableMaterialData
(int type, BlockFace direction) SimpleAttachableMaterialData
(Material type, BlockFace 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 MushroomBlockTexture
MushroomBlockTexture.getCapByFace
(BlockFace face) 获取关于指定方块朝向的蘑菇盖的 MushroomBlockType.