Class ProductionCalculateEvent
java.lang.Object
xyz.geik.farmer.modules.production.handlers.ProductionCalculateEvent
- All Implemented Interfaces:
org.bukkit.event.Listener
Minutely, Hourly and Daily Production Calculation
- Author:
- Geik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonProductionCalculateEvent(@NotNull FarmerMainGuiOpenEvent event) Listens FarmerGuiOpenEvent for recalculate cachevoidproductionFlushEvent(@NotNull FarmerItemProductionEvent event) Removes cache after 15 minutesvoidproductionLoadEvent(@NotNull FarmerItemCollectEvent event) Loads generation data when item is collected if all generation items wait for calculation then it will remove cache
-
Constructor Details
-
ProductionCalculateEvent
public ProductionCalculateEvent()Constructor of class
-
-
Method Details
-
onProductionCalculateEvent
Listens FarmerGuiOpenEvent for recalculate cache- Parameters:
event- of gui open event
-
productionLoadEvent
Loads generation data when item is collected if all generation items wait for calculation then it will remove cache- Parameters:
event- of collection
-
productionFlushEvent
Removes cache after 15 minutes- Parameters:
event- production event
-