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.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Modifier and Type | Field and Description |
---|---|
private Entity |
entity |
private float |
fallDistance |
Constructor and Description |
---|
FarmlandTrampleEvent(World world,
BlockPos pos,
BlockState state,
float fallDistance,
Entity entity) |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity() |
float |
getFallDistance() |
getPos, getState, getWorld
private final Entity entity
private final float fallDistance
public FarmlandTrampleEvent(World world, BlockPos pos, BlockState state, float fallDistance, Entity entity)
public Entity getEntity()
public float getFallDistance()