Package net.minecraftforge.event.level
Class BlockEvent.EntityMultiPlaceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.EntityPlaceEvent
net.minecraftforge.event.level.BlockEvent.EntityMultiPlaceEvent
- Enclosing class:
- BlockEvent
Fired when a single block placement triggers the
 creation of multiple blocks(e.g. placing a bed block). The block returned
 by 
BlockEvent.state 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 net.minecraftforge.event.level.BlockEventBlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEventNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionEntityMultiPlaceEvent(@NotNull List<BlockSnapshot> blockSnapshots, @NotNull BlockState placedAgainst, @Nullable Entity entity) 
- 
Method SummaryModifier and TypeMethodDescriptionGets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks.Methods inherited from class net.minecraftforge.event.level.BlockEvent.EntityPlaceEventgetBlockSnapshot, getEntity, getPlacedAgainst, getPlacedBlockMethods inherited from class net.minecraftforge.event.level.BlockEventgetLevel, getPos, getStateMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
blockSnapshots
 
- 
- 
Constructor Details- 
EntityMultiPlaceEventpublic EntityMultiPlaceEvent(@NotNull @NotNull List<BlockSnapshot> blockSnapshots, @NotNull @NotNull BlockState placedAgainst, @Nullable @Nullable Entity entity) 
 
- 
- 
Method Details- 
getReplacedBlockSnapshotsGets a list of BlockSnapshots for all blocks which were replaced by the placement of the new blocks. Most of these blocks will just be of type AIR.- Returns:
- immutable list of replaced BlockSnapshots
 
 
-