Package net.minecraftforge.event.level
Class BlockEvent.EntityPlaceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.BlockEvent
net.minecraftforge.event.level.BlockEvent.EntityPlaceEvent
- Direct Known Subclasses:
 BlockEvent.EntityMultiPlaceEvent
- Enclosing class:
 - BlockEvent
 
Called when a block is placed.
 If a Block Place event is cancelled, the block will not be placed.
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.level.BlockEvent
BlockEvent.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.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockSnapshotprivate final Entityprivate final BlockStateprivate final BlockState - 
Constructor Summary
ConstructorsConstructorDescriptionEntityPlaceEvent(@NotNull BlockSnapshot blockSnapshot, @NotNull BlockState placedAgainst, @Nullable Entity entity)  - 
Method Summary
Methods inherited from class net.minecraftforge.event.level.BlockEvent
getLevel, getPos, getStateMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult 
- 
Field Details
- 
entity
 - 
blockSnapshot
 - 
placedBlock
 - 
placedAgainst
 
 - 
 - 
Constructor Details
- 
EntityPlaceEvent
public EntityPlaceEvent(@NotNull @NotNull BlockSnapshot blockSnapshot, @NotNull @NotNull BlockState placedAgainst, @Nullable @Nullable Entity entity)  
 - 
 - 
Method Details
- 
getEntity
 - 
getBlockSnapshot
 - 
getPlacedBlock
 - 
getPlacedAgainst
 
 -