public class BlockMultiPlaceEvent extends BlockPlaceEvent
通过 BlockPlaceEvent.getBlockPlaced()
和它的相关方法 返回的方块是:若该位置不仅影响一个方块,
其中放置的方块会存在.
Event.Result
canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState
block
构造器和说明 |
---|
BlockMultiPlaceEvent(java.util.List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<BlockState> |
getReplacedBlockStates()
获取所有新放置的方块的方块状态.
|
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled
getBlock
getEventName, isAsynchronous
public BlockMultiPlaceEvent(java.util.List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)
public java.util.List<BlockState> 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.