public static class BlockEvent.EntityPlaceEvent extends BlockEvent
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 BlockSnapshot |
blockSnapshot |
private Entity |
entity |
private IBlockState |
placedAgainst |
private IBlockState |
placedBlock |
Constructor and Description |
---|
EntityPlaceEvent(BlockSnapshot blockSnapshot,
IBlockState placedAgainst,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
BlockSnapshot |
getBlockSnapshot() |
Entity |
getEntity() |
IBlockState |
getPlacedAgainst() |
IBlockState |
getPlacedBlock() |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final Entity entity
private final BlockSnapshot blockSnapshot
private final IBlockState placedBlock
private final IBlockState placedAgainst
public EntityPlaceEvent(@Nonnull BlockSnapshot blockSnapshot, @Nonnull IBlockState placedAgainst, @Nullable Entity entity)
@Nullable public Entity getEntity()
public BlockSnapshot getBlockSnapshot()
public IBlockState getPlacedBlock()
public IBlockState getPlacedAgainst()