Class CropGrowEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
Enclosing class:
CropGrowEvent

public static class CropGrowEvent.Pre extends CropGrowEvent
Fired when any "growing age" blocks (for example cacti, chorus plants, or crops in vanilla) attempt to advance to the next growth age state during a random tick.

This event is only fired on the logical server.

  • Field Details

  • Constructor Details

  • Method Details

    • setResult

      public void setResult(CropGrowEvent.Pre.Result result)
      Changes the result of this event.
    • getResult

      public CropGrowEvent.Pre.Result getResult()
      Returns the result of this event, which controls if the click will be treated as handled.
      Returns:
      the result of this event, which controls if the click will be treated as handled