Class BlockEvent.FarmlandTrampleEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.BlockEvent.FarmlandTrampleEvent
- All Implemented Interfaces:
 net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
 - BlockEvent
 
public static class BlockEvent.FarmlandTrampleEvent
extends BlockEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired when when farmland gets trampled
 This event is 
ICancellableEvent- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEventNested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionFarmlandTrampleEvent(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity)  - 
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getStateMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled 
- 
Field Details
- 
entity
 - 
fallDistance
private final float fallDistance 
 - 
 - 
Constructor Details
- 
FarmlandTrampleEvent
public FarmlandTrampleEvent(Level level, BlockPos pos, BlockState state, float fallDistance, Entity entity)  
 - 
 - 
Method Details
- 
getEntity
 - 
getFallDistance
public float getFallDistance() 
 -