Interface PlantFertilizeEvent

All Superinterfaces:
Cancellable, Event, FarmingEvent

public interface PlantFertilizeEvent extends FarmingEvent, Cancellable
Fired when a fertilizer is about to be used on a block that takes it, before the item is used up and before the block is fed. The growth that follows fires its own PlantGrowEvent.

Cancelling the event leaves both the block and the item as they are.

Since:
0.1.0
  • Method Details

    • player

      @Nullable Player player()
      Returns the player using the fertilizer, null when nobody does.
      Returns:
      the player using the fertilizer, null when nobody does
      Since:
      0.1.0
    • fertilizer

      ItemStack fertilizer()
      Returns the stack the fertilizer is taken from.
      Returns:
      the stack the fertilizer is taken from
      Since:
      0.1.0