public static class BlockEvent.FarmlandTrampleEvent extends BlockEvent
Cancelable
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 Entity |
entity |
private float |
fallDistance |
Constructor and Description |
---|
FarmlandTrampleEvent(World world,
BlockPos pos,
IBlockState state,
float fallDistance,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity() |
float |
getFallDistance() |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final Entity entity
private final float fallDistance
public FarmlandTrampleEvent(World world, BlockPos pos, IBlockState state, float fallDistance, Entity entity)
public Entity getEntity()
public float getFallDistance()