Package fr.fidorial.event.farming


package fr.fidorial.event.farming
Events fired by farming: soil being tilled, getting wet, drying out or trampled, plants growing, fertilizer being used, and harvests dropping.

Every event of this package is a FarmingEvent, posted on the thread of the region owning the block, before the change it describes, and only built while a listener is subscribed to it.

Since:
0.1.0
See Also:
  • Interfaces
    Class
    Description
    An event about one block taking part in farming.
    Fired when a block taking part in farming is about to drop what it gives: a player who is not in creative mode breaks it or picks its fruits, or it breaks on its own because it can no longer stand.
    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.
    Fired when a plant is about to grow: a crop reaching its next stage, a cane growing one block taller, a stem bearing a fruit.
    Fired when tilled soil is about to get wetter or drier: water or rain soaking it, or the lack of both drying it out one step.
    Fired when tilled soil is about to turn back into plain soil: it dried out with nothing planted on it, a solid block covers it, or something trampled it.
    Fired when a player is about to till a block with a hoe: FarmingEvent.block() is the soil as it is, SoilTillEvent.tilled() what it is about to become.
    Fired when an entity landing on tilled soil is about to trample it back into plain soil, which also uproots what grows on it.