程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.event.block | |
org.bukkit.event.entity | |
org.bukkit.event.world | |
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
限定符和类型 | 方法和说明 |
---|---|
BlockState[] |
Chunk.getTileEntities()
获取该区块内所有的TileEntity的列表.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
Banner
代表旗帜(快照)/Represents a captured state of a banner.
|
interface |
Beacon
Represents a captured state of a beacon.
|
interface |
Bed
代表床(快照)/Represents a captured state of a bed.
|
interface |
BrewingStand
代表酿造台(快照).
|
interface |
Chest
代表一个箱子(快照).
|
interface |
CommandBlock
代表命令方块(快照)/Represents a captured state of a command block.
|
interface |
Comparator
Represents a captured state of an on / off comparator.
|
interface |
Container
Represents a captured state of a container block.
|
interface |
CreatureSpawner
代表一个刷怪笼(快照).
|
interface |
DaylightDetector
Represents a captured state of a (possibly inverted) daylight detector.
|
interface |
Dispenser
代表一个发射器(快照).
|
interface |
Dropper
代表一个投掷器(快照).
|
interface |
EnchantingTable
代表附魔台(快照)/Represents a captured state of an enchanting table.
|
interface |
EnderChest
代表末影箱(快照)/Represents a captured state of an ender chest.
|
interface |
EndGateway
Represents a captured state of an end gateway.
|
interface |
FlowerPot
Represents a captured state of a flower pot.
|
interface |
Furnace
代表一个熔炉(快照).
|
interface |
Hopper
代表漏斗(快照).
|
interface |
Jukebox
代表一个唱片机(快照).
|
interface |
NoteBlock
代表音符盒(快照).
|
interface |
ShulkerBox
Represents a captured state of a ShulkerBox.
|
interface |
Sign
代表一个告示牌或者墙上告示牌(快照).
|
interface |
Skull
代表一个头颅(快照).
|
interface |
Structure
Represents a structure block that can save and load blocks from a file.
|
限定符和类型 | 方法和说明 |
---|---|
BlockState |
Block.getState()
Captures the current state of this block.
|
限定符和类型 | 字段和说明 |
---|---|
protected BlockState |
BlockPlaceEvent.replacedBlockState |
限定符和类型 | 方法和说明 |
---|---|
BlockState |
BlockPlaceEvent.getBlockReplacedState()
获取方块被放置后的方块状态(
BlockState ). |
BlockState |
BlockGrowEvent.getNewState()
获取这个方块生长之后的新状态.
|
BlockState |
BlockFadeEvent.getNewState()
获取因为世界条件消退,融化,消失的方块的状态(
BlockState ). |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<BlockState> |
BlockMultiPlaceEvent.getReplacedBlockStates()
获取所有新放置的方块的方块状态.
|
构造器和说明 |
---|
BlockFadeEvent(Block block,
BlockState newState) |
BlockFormEvent(Block block,
BlockState newState) |
BlockGrowEvent(Block block,
BlockState newState) |
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild)
已过时。
|
BlockPlaceEvent(Block placedBlock,
BlockState replacedBlockState,
Block placedAgainst,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild,
EquipmentSlot hand) |
BlockSpreadEvent(Block block,
Block source,
BlockState newState) |
EntityBlockFormEvent(Entity entity,
Block block,
BlockState blockstate) |
构造器和说明 |
---|
BlockMultiPlaceEvent(java.util.List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<BlockState> |
EntityCreatePortalEvent.getBlocks()
返回与这个传送门有关的所有方块.
|
构造器和说明 |
---|
EntityCreatePortalEvent(LivingEntity what,
java.util.List<BlockState> blocks,
PortalType type) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<BlockState> |
StructureGrowEvent.getBlocks()
获取与结构有关的所有方块的ArrayList.
|
构造器和说明 |
---|
StructureGrowEvent(Location location,
TreeType species,
boolean bonemeal,
Player player,
java.util.List<BlockState> blocks) |
限定符和类型 | 方法和说明 |
---|---|
BlockState |
BlockStateMeta.getBlockState()
返回这个物品当前附加的BlockState,如果不存在将创建一个新的.
|
限定符和类型 | 方法和说明 |
---|---|
void |
BlockStateMeta.setBlockState(BlockState blockState)
将BlockState副本附加到物品上(设置这个物品的BlockState).
|