- All Implemented Interfaces:
public class BlockMultiPlaceEvent extends BlockPlaceEvent
Fired when a single block placement action of a player triggers the creation of multiple blocks(e.g. placing a bed block). The block returned by
BlockPlaceEvent.getBlockPlaced()and its related methods is the block where the placed block would exist if the placement only affected a single block.
Nested Class Summary
Fields inherited from class org.bukkit.event.block.BlockPlaceEvent
canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState
@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild)(Deprecated.
@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, EquipmentSlot hand)(
Methods inherited from class org.bukkit.event.block.BlockPlaceEvent
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled
getReplacedBlockStatesGets 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.
- immutable list of replaced BlockStates