Cancellablepublic 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.ResultblockcanBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState| Constructor | Description |
|---|---|
BlockMultiPlaceEvent(java.util.List<BlockState> states,
Block clicked,
ItemStack itemInHand,
Player thePlayer,
boolean canBuild) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<BlockState> |
getReplacedBlockStates() |
Gets a list of blockstates for all blocks which were replaced by the
placement of the new blocks.
|
getBlockcanBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelledgetEventName, isAsynchronouspublic BlockMultiPlaceEvent(java.util.List<BlockState> states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)
public java.util.List<BlockState> getReplacedBlockStates()
Copyright © 2018. All rights reserved.