Interface PlantFertilizeEvent
- All Superinterfaces:
Cancellable, Event, FarmingEvent
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 Summary
Modifier and TypeMethodDescriptionReturns the stack the fertilizer is taken from.player()Returns the player using the fertilizer,nullwhen nobody does.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface FarmingEvent
block, position, world
-
Method Details
-
player
-
fertilizer
ItemStack fertilizer()Returns the stack the fertilizer is taken from.- Returns:
- the stack the fertilizer is taken from
- Since:
- 0.1.0
-