类 BlockMultiPlaceEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPlaceEvent
org.bukkit.event.block.BlockMultiPlaceEvent
- 所有已实现的接口:
Cancellable
当玩家放一个方块,而连锁放置了第二个方块时(例如玩家放置一个床)触发本事件.
通过 BlockPlaceEvent.getBlockPlaced()
和它的相关方法 返回的方块是:若该位置不仅影响一个方块,
其中放置的方块会存在.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result
-
字段概要
从类继承的字段 org.bukkit.event.block.BlockPlaceEvent
canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState
从类继承的字段 org.bukkit.event.block.BlockEvent
block
-
构造器概要
构造器说明BlockMultiPlaceEvent
(List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild) -
方法概要
从类继承的方法 org.bukkit.event.block.BlockPlaceEvent
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled
从类继承的方法 org.bukkit.event.block.BlockEvent
getBlock
从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
BlockMultiPlaceEvent
public BlockMultiPlaceEvent(List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)
-
-
方法详细资料
-
getReplacedBlockStates
获取所有新放置的方块的方块状态.这些方块中的大多数方块状态都是空气.
原文:Gets a list of blockstates for all blocks which were replaced by the placement of the new blocks. Most of these blocks will just have a Material type of AIR.
- 返回:
- 一个不能改变的BlockStates列表
-