public static class BlockEvent.EntityPlaceEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.HarvestDropsEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Modifier and Type | Field and Description |
---|---|
private BlockSnapshot |
blockSnapshot |
private Entity |
entity |
private BlockState |
placedAgainst |
private BlockState |
placedBlock |
Constructor and Description |
---|
EntityPlaceEvent(BlockSnapshot blockSnapshot,
BlockState placedAgainst,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
BlockSnapshot |
getBlockSnapshot() |
Entity |
getEntity() |
BlockState |
getPlacedAgainst() |
BlockState |
getPlacedBlock() |
getPos, getState, getWorld
private final Entity entity
private final BlockSnapshot blockSnapshot
private final BlockState placedBlock
private final BlockState placedAgainst
public EntityPlaceEvent(@Nonnull BlockSnapshot blockSnapshot, @Nonnull BlockState placedAgainst, @Nullable Entity entity)
@Nullable public Entity getEntity()
public BlockSnapshot getBlockSnapshot()
public BlockState getPlacedBlock()
public BlockState getPlacedAgainst()