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

    • entity

      private final Entity entity
    • fallDistance

      private final float fallDistance
  • Constructor Details

  • Method Details

    • getEntity

      public Entity getEntity()
    • getFallDistance

      public float getFallDistance()