public static class BlockEvent.MultiPlaceEvent extends BlockEvent.PlaceEvent
BlockEvent.state
and its related methods is the block where
the placed block would exist if the placement only affected a single
block.BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent, BlockEvent.PortalSpawnEvent
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private java.util.List<BlockSnapshot> |
blockSnapshots |
Constructor and Description |
---|
MultiPlaceEvent(java.util.List<BlockSnapshot> blockSnapshots,
IBlockState placedAgainst,
EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
java.util.List<BlockSnapshot> |
getReplacedBlockSnapshots()
Gets a list of BlockSnapshots for all blocks which were replaced by the
placement of the new blocks.
|
getHand, getItemInHand, getPlayer
getBlockSnapshot, getEntity, getPlacedAgainst, getPlacedBlock
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final java.util.List<BlockSnapshot> blockSnapshots
public MultiPlaceEvent(@Nonnull java.util.List<BlockSnapshot> blockSnapshots, @Nonnull IBlockState placedAgainst, @Nonnull EntityPlayer player, @Nonnull EnumHand hand)
public java.util.List<BlockSnapshot> getReplacedBlockSnapshots()