类 CropGrowEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
封闭类:
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.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • setResult

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

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