程序包 | 说明 |
---|---|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.block | |
org.bukkit.event.hanging | |
org.bukkit.event.player | |
org.bukkit.material |
代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
|
org.bukkit.material.types |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
Block.getFace(Block block)
Gets the face relation of this block compared to the given block.
|
BlockFace |
BlockFace.getOppositeFace() |
BlockFace |
Skull.getRotation()
获取这个头颅在世界的角度.
|
static BlockFace |
BlockFace.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static BlockFace[] |
BlockFace.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
int |
Block.getBlockPower(BlockFace face)
Returns the redstone power being provided to this block face
|
Block |
Block.getRelative(BlockFace face)
Gets the block at the given face
This method is equal to getRelative(face, 1)
|
Block |
Block.getRelative(BlockFace face,
int distance)
Gets the block at the given distance of the given face
For example, the following method places water at 100,102,100; two
blocks above 100,100,100.
|
boolean |
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)
设置这个头颅在世界的角度.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
Hanging.setFacingDirection(BlockFace face,
boolean force)
设置悬挂实体的方向,这可能会重写所有规则.
|
限定符和类型 | 字段和说明 |
---|---|
protected BlockFace |
BlockFromToEvent.face |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
BlockPistonEvent.getDirection()
返回活塞的朝向.
|
BlockFace |
BlockFromToEvent.getFace()
获取方块想要移动到的
朝向 . |
构造器和说明 |
---|
BlockFromToEvent(Block block,
BlockFace face) |
BlockPistonEvent(Block block,
BlockFace direction) |
BlockPistonExtendEvent(Block block,
int length,
BlockFace direction)
已过时。
|
BlockPistonExtendEvent(Block block,
java.util.List<Block> blocks,
BlockFace direction) |
BlockPistonRetractEvent(Block block,
java.util.List<Block> blocks,
BlockFace direction) |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
HangingPlaceEvent.getBlockFace()
返回这个悬挂实体被放置在的方块的朝向.
|
构造器和说明 |
---|
HangingPlaceEvent(Hanging hanging,
Player player,
Block block,
BlockFace blockFace) |
限定符和类型 | 字段和说明 |
---|---|
protected BlockFace |
PlayerInteractEvent.blockFace |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
PlayerInteractEvent.getBlockFace()
返回被点击的方块的朝向
Returns the face of the block that was clicked
|
BlockFace |
PlayerBucketEvent.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) |
限定符和类型 | 字段和说明 |
---|---|
protected static BlockFace |
Diode.DEFAULT_DIRECTION |
protected static BlockFace |
Tree.DEFAULT_DIRECTION |
protected static BlockFace |
Comparator.DEFAULT_DIRECTION |
protected static BlockFace |
Hopper.DEFAULT_DIRECTION |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
Stairs.getAscendingDirection() |
BlockFace |
Attachable.getAttachedFace()
获取这个方块附着的朝向.
|
BlockFace |
Torch.getAttachedFace()
获取这个火把附着的朝向.
|
BlockFace |
Lever.getAttachedFace()
获取这个方块附着的朝向.
|
BlockFace |
PistonExtensionMaterial.getAttachedFace() |
BlockFace |
TripwireHook.getAttachedFace() |
BlockFace |
CocoaPlant.getAttachedFace() |
BlockFace |
Button.getAttachedFace()
获取这个方块附着的方向.
|
BlockFace |
Banner.getAttachedFace() |
BlockFace |
Ladder.getAttachedFace()
获取这个方块附着的方向.
|
BlockFace |
Sign.getAttachedFace()
获取这个木牌附着的朝向.
|
BlockFace |
TrapDoor.getAttachedFace() |
BlockFace |
Stairs.getDescendingDirection() |
BlockFace |
Rails.getDirection() |
BlockFace |
Tree.getDirection()
获取木头的朝向.
|
BlockFace |
Bed.getFacing()
获取床头的朝向。
|
BlockFace |
Diode.getFacing()
获取这个红石中继器的朝向.
|
BlockFace |
PistonExtensionMaterial.getFacing() |
BlockFace |
CocoaPlant.getFacing() |
BlockFace |
Door.getFacing()
Get the direction that this door is facing.
|
BlockFace |
PistonBaseMaterial.getFacing() |
BlockFace |
Directional.getFacing()
获取这个方块的朝向.
|
BlockFace |
Skull.getFacing() |
BlockFace |
DirectionalContainer.getFacing() |
BlockFace |
Dispenser.getFacing() |
BlockFace |
Gate.getFacing() |
BlockFace |
Banner.getFacing() |
BlockFace |
Pumpkin.getFacing() |
BlockFace |
Comparator.getFacing()
获取这个红石比较器的朝向.
|
BlockFace |
SimpleAttachableMaterialData.getFacing() |
BlockFace |
Sign.getFacing()
获取这个告示牌当前的朝向.
|
BlockFace |
Observer.getFacing() |
BlockFace |
Hopper.getFacing()
获取这个漏斗的朝向.
|
BlockFace |
Stairs.getFacing() |
BlockFace |
Door.getHingeCorner()
已过时。
This method should not be used; use hinge and facing accessors instead.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<BlockFace> |
Mushroom.getPaintedFaces() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
Mushroom.isFacePainted(BlockFace face)
Checks whether a face of the block is painted with cap texture.
|
boolean |
Vine.isOnFace(BlockFace face)
检测藤蔓是否靠在与其相邻方块的表面.
|
void |
Vine.putOnFace(BlockFace face)
使这个藤蔓附着在相邻方块的指定表面.
|
void |
Vine.removeFromFace(BlockFace face)
从相邻的方块的指定表面拆除藤蔓.
|
void |
Tree.setDirection(BlockFace dir)
设置木头的朝向.
|
void |
Rails.setDirection(BlockFace face,
boolean isOnSlope)
设置这个轨道的方向.
|
void |
ExtendedRails.setDirection(BlockFace face,
boolean isOnSlope) |
void |
Mushroom.setFacePainted(BlockFace face,
boolean painted)
已过时。
Use MushroomBlockType cap options
|
void |
Torch.setFacingDirection(BlockFace face) |
void |
Bed.setFacingDirection(BlockFace face)
设置床头的朝向.注意这只会影响到两个方块的床。
|
void |
Lever.setFacingDirection(BlockFace face)
设置拉杆被指向的方向.
|
void |
Diode.setFacingDirection(BlockFace face)
设置这个红石中继器的朝向.
|
void |
PistonExtensionMaterial.setFacingDirection(BlockFace face) |
void |
TripwireHook.setFacingDirection(BlockFace face) |
void |
CocoaPlant.setFacingDirection(BlockFace face) |
void |
Door.setFacingDirection(BlockFace face)
Set the direction that this door should is facing.
|
void |
PistonBaseMaterial.setFacingDirection(BlockFace face) |
void |
Button.setFacingDirection(BlockFace face)
设置这个按钮所指的方向.
|
void |
Directional.setFacingDirection(BlockFace face)
设置这个方块的朝向.
|
void |
Skull.setFacingDirection(BlockFace face) |
void |
DirectionalContainer.setFacingDirection(BlockFace face) |
void |
Dispenser.setFacingDirection(BlockFace face) |
void |
Gate.setFacingDirection(BlockFace face) |
void |
Banner.setFacingDirection(BlockFace face) |
void |
Pumpkin.setFacingDirection(BlockFace face) |
void |
Ladder.setFacingDirection(BlockFace face)
设置这个梯子的朝向.
|
void |
Comparator.setFacingDirection(BlockFace face)
设置这个红石比较器的朝向.
|
void |
Sign.setFacingDirection(BlockFace face) |
void |
TrapDoor.setFacingDirection(BlockFace face) |
void |
Observer.setFacingDirection(BlockFace face) |
void |
Hopper.setFacingDirection(BlockFace face)
设置这个漏斗的朝向.
|
void |
Stairs.setFacingDirection(BlockFace face)
设置楼梯部分的朝向.
|
构造器和说明 |
---|
Bed(BlockFace direction)
使用特定的朝向以实例化一个床。
|
Chest(BlockFace direction)
实例化一个特定朝向的箱子.
|
CocoaPlant(CocoaPlant.CocoaPlantSize sz,
BlockFace dir) |
Comparator(BlockFace facingDirection)
构造一个关闭状态的、默认模式指定朝向的红石比较器.
|
Comparator(BlockFace facingDirection,
boolean isSubtraction)
构造一个关闭状态的、指定模式指定朝向的红石比较器.
|
Comparator(BlockFace facingDirection,
boolean isSubtraction,
boolean state)
构造一个开启或关闭状态的、指定模式指定朝向的红石比较器.
|
Diode(BlockFace facingDirection)
构造一个关闭状态的、1延迟、指定朝向的红石中继器.
|
Diode(BlockFace facingDirection,
int delay)
构造一个关闭状态的、指定延迟、指定朝向的红石中继器.
|
Diode(BlockFace facingDirection,
int delay,
boolean state)
构造一个开启或关闭状态的、指定延迟、指定朝向的红石中继器.
|
Dispenser(BlockFace direction) |
Door(Material type,
BlockFace face)
构造一个
原文:Constructs the bottom half of a door of the given material type, facing the specified direction and set to closed
|
Door(Material type,
BlockFace face,
boolean isOpen)
Constructs the bottom half of a door of the given material type, facing the specified direction and set to open
or closed
|
Door(TreeSpecies species,
BlockFace face)
Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to
closed
|
Door(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 closed
|
EnderChest(BlockFace direction)
实例化一个特定朝向的末影箱.
|
Furnace(BlockFace direction)
实例化一个特定朝向的熔炉.
|
Hopper(BlockFace facingDirection)
构造一个指定朝向、激活的漏斗.
|
Hopper(BlockFace facingDirection,
boolean isActive)
构造一个指定朝向、指定激活状态的漏斗.
|
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(int type,
BlockFace direction) |
SimpleAttachableMaterialData(Material type,
BlockFace direction) |
Skull(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) |
Vine(BlockFace... faces) |
构造器和说明 |
---|
Vine(java.util.EnumSet<BlockFace> faces) |
限定符和类型 | 方法和说明 |
---|---|
BlockFace |
MushroomBlockTexture.getCapFace()
获取这个材质所对的朝向.
|
限定符和类型 | 方法和说明 |
---|---|
static MushroomBlockTexture |
MushroomBlockTexture.getCapByFace(BlockFace face)
获取关于指定方块朝向的蘑菇盖的 MushroomBlockType.
|