Class CropGrowEvent.Post

java.lang.Object
net.neoforged.bus.api.Event
Enclosing class:
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.

  • Field Details

    • originalState

      private final BlockState originalState
  • Constructor Details

  • Method Details

    • getOriginalState

      public BlockState getOriginalState()
      Returns the original state of the crop before growing.
      Returns:
      the original state of the crop before growing
    • getState

      public BlockState getState()
      Returns the new state of the crop after growing.
      Overrides:
      getState in class BlockEvent
      Returns:
      the new state of the crop after growing