Package org.bukkit.event.block
Class BlockMultiPlaceEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockPlaceEvent
org.bukkit.event.block.BlockMultiPlaceEvent
- All Implemented Interfaces:
- Cancellable
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 SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockPlaceEventcanBuild, cancelled, hand, itemInHand, placedAgainst, player, replacedBlockStateFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructorsConstructorDescriptionBlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) Deprecated, for removal: This API element is subject to removal in a future version.BlockMultiPlaceEvent(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, EquipmentSlot hand) 
- 
Method SummaryModifier and TypeMethodDescriptionGets a list of blockstates for all blocks which were replaced by the placement of the new blocks.Methods inherited from class org.bukkit.event.block.BlockPlaceEventcanBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelledMethods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
BlockMultiPlaceEvent@Internal @Deprecated(forRemoval=true) public BlockMultiPlaceEvent(@NotNull @NotNull List<BlockState> states, @NotNull @NotNull Block clicked, @NotNull @NotNull ItemStack itemInHand, @NotNull @NotNull Player thePlayer, boolean canBuild) Deprecated, for removal: This API element is subject to removal in a future version.
- 
BlockMultiPlaceEvent
 
- 
- 
Method Details- 
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.- Returns:
- immutable list of replaced BlockStates
 
 
-