public class BlockMultiPlaceEvent extends BlockPlaceEvent
BlockPlaceEvent.getBlockPlaced()
and its related methods is the block where
the placed block would exist if the placement only affected a single
block.Event.Result
canBuild, cancel, itemInHand, placedAgainst, player, replacedBlockState
block
Constructor and Description |
---|
BlockMultiPlaceEvent(List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
Modifier and Type | Method and Description |
---|---|
List<BlockState> |
getReplacedBlockStates()
Gets a list of blockstates for all blocks which were replaced by the
placement of the new blocks.
|
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled
getBlock
getEventName, isAsynchronous
public BlockMultiPlaceEvent(List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)
public List<BlockState> getReplacedBlockStates()
Copyright © 2016. All rights reserved.