Cancellable
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
block
canBuild, cancel, hand, itemInHand, placedAgainst, player, replacedBlockState
Constructor | Description |
---|---|
BlockMultiPlaceEvent(@NotNull List<BlockState> states,
@NotNull Block clicked,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild) |
Deprecated.
|
BlockMultiPlaceEvent(@NotNull List<BlockState> states,
@NotNull Block clicked,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild,
EquipmentSlot hand) |
Modifier and Type | Method | Description |
---|---|---|
@NotNull List<BlockState> |
getReplacedBlockStates() |
Gets a list of blockstates for all blocks which were replaced by the
placement of the new blocks.
|
getBlock
canBuild, getBlockAgainst, getBlockPlaced, getBlockReplacedState, getHand, getHandlerList, getHandlers, getItemInHand, getPlayer, isCancelled, setBuild, setCancelled
callEvent, getEventName, isAsynchronous
@Deprecated public BlockMultiPlaceEvent(@NotNull @NotNull List<BlockState> states, @NotNull @NotNull Block clicked, @NotNull @NotNull ItemStack itemInHand, @NotNull @NotNull Player thePlayer, boolean canBuild)
public BlockMultiPlaceEvent(@NotNull @NotNull List<BlockState> states, @NotNull @NotNull Block clicked, @NotNull @NotNull ItemStack itemInHand, @NotNull @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand)
@NotNull public @NotNull List<BlockState> getReplacedBlockStates()
Copyright © 2020. All rights reserved.