类 CropGrowEvent.Post

java.lang.Object
net.neoforged.bus.api.Event
封闭类:
CropGrowEvent

public static class CropGrowEvent.Post extends CropGrowEvent
Fired when "growing age" blocks (for example cacti, chorus plants, or crops in vanilla) have successfully grown. The block's original state is available, in addition to its new state.

This event is only fired on the logical server.

  • 字段详细资料

    • originalState

      private final BlockState originalState
  • 构造器详细资料

  • 方法详细资料

    • getOriginalState

      public BlockState getOriginalState()
      返回 the original state of the crop before growing。
      返回:
      the original state of the crop before growing
    • getState

      public BlockState getState()
      返回 the new state of the crop after growing。
      覆盖:
      getState 在类中 BlockEvent
      返回:
      the new state of the crop after growing