Interface SoilTrampleEvent

All Superinterfaces:
Cancellable, Event, FarmingEvent, SoilRevertEvent

public interface SoilTrampleEvent extends SoilRevertEvent
Fired when an entity landing on tilled soil is about to trample it back into plain soil, which also uproots what grows on it.

It is a SoilRevertEvent: a listener of that event receives this one too. Cancelling the event keeps the soil tilled.

Since:
0.1.0
  • Method Details

    • entity

      Entity entity()
      Returns the entity that landed on the soil.
      Returns:
      the entity that landed on the soil
      Since:
      0.1.0
    • fallDistance

      double fallDistance()
      Returns how far the entity fell, in blocks.
      Returns:
      how far the entity fell, in blocks
      Since:
      0.1.0