Interface SoilRevertEvent

All Superinterfaces:
Cancellable, Event, FarmingEvent
All Known Subinterfaces:
SoilTrampleEvent

public interface SoilRevertEvent extends FarmingEvent, Cancellable
Fired when tilled soil is about to turn back into plain soil: it dried out with nothing planted on it, a solid block covers it, or something trampled it.

Changing the reverted state changes what the soil turns into. Cancelling the event keeps the soil tilled.

Since:
0.1.0
  • Method Details

    • reverted

      BlockData reverted()
      Returns the state the soil is about to turn into.
      Returns:
      the state the soil is about to turn into
      Since:
      0.1.0
    • setReverted

      void setReverted(BlockData reverted)
      Sets the state the soil turns into once the event is over.
      Parameters:
      reverted - the state to write
      Since:
      0.1.0