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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onProductionCalculateEvent
(@NotNull FarmerMainGuiOpenEvent event) Listens FarmerGuiOpenEvent for recalculate cachevoid
productionFlushEvent
(@NotNull FarmerItemProductionEvent event) Removes cache after 15 minutesvoid
productionLoadEvent
(@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
-