Package net.minecraftforge.event.world
Class BlockEvent.EntityPlaceEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.world.BlockEvent
net.minecraftforge.event.world.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.world.BlockEvent
BlockEvent.BlockToolInteractEvent, BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockSnapshot
private final Entity
private final BlockState
private final BlockState
-
Constructor Summary
ConstructorDescriptionEntityPlaceEvent
(BlockSnapshot blockSnapshot, BlockState placedAgainst, Entity entity) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.minecraftforge.event.world.BlockEvent
getPos, getState, getWorld
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
entity
-
blockSnapshot
-
placedBlock
-
placedAgainst
-
-
Constructor Details
-
EntityPlaceEvent
public EntityPlaceEvent(@Nonnull BlockSnapshot blockSnapshot, @Nonnull BlockState placedAgainst, @Nullable Entity entity)
-
-
Method Details
-
getEntity
-
getBlockSnapshot
-
getPlacedBlock
-
getPlacedAgainst
-