Class ProductionCalculateEvent

java.lang.Object
xyz.geik.farmer.modules.production.handlers.ProductionCalculateEvent
All Implemented Interfaces:
org.bukkit.event.Listener

public class ProductionCalculateEvent extends Object implements org.bukkit.event.Listener
Minutely, Hourly and Daily Production Calculation
Author:
Geik
  • Constructor Details

    • ProductionCalculateEvent

      public ProductionCalculateEvent()
      Constructor of class
  • Method Details

    • onProductionCalculateEvent

      public void onProductionCalculateEvent(@NotNull @NotNull FarmerMainGuiOpenEvent event)
      Listens FarmerGuiOpenEvent for recalculate cache
      Parameters:
      event - of gui open event
    • productionLoadEvent

      public void productionLoadEvent(@NotNull @NotNull FarmerItemCollectEvent event)
      Loads generation data when item is collected if all generation items wait for calculation then it will remove cache
      Parameters:
      event - of collection
    • productionFlushEvent

      public void productionFlushEvent(@NotNull @NotNull FarmerItemProductionEvent event)
      Removes cache after 15 minutes
      Parameters:
      event - production event