Interface SoilMoistureEvent

All Superinterfaces:
Cancellable, Event, FarmingEvent

public interface SoilMoistureEvent extends FarmingEvent, Cancellable
Fired when tilled soil is about to get wetter or drier: water or rain soaking it, or the lack of both drying it out one step. FarmingEvent.block() is the soil as it is, moistened() what it is about to become; both usually are Farmland.

Cancelling the event keeps the moisture the soil has.

Since:
0.1.0
  • Method Details

    • moistened

      BlockData moistened()
      Returns the state the soil is about to take, with its new moisture.
      Returns:
      the state the soil is about to take, with its new moisture
      Since:
      0.1.0