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
  • Field Details Link icon

    • entity Link icon

      private final Entity entity
    • fallDistance Link icon

      private final float fallDistance
  • Constructor Details Link icon

  • Method Details Link icon

    • getEntity Link icon

      public Entity getEntity()
    • getFallDistance Link icon

      public float getFallDistance()