Class ProductionModel
java.lang.Object
xyz.geik.farmer.modules.production.model.ProductionModel
Production model object
- Since:
- 1.0.0
- Author:
- poyraz
-
Constructor Summary
ConstructorsConstructorDescriptionProductionModel(@NotNull Farmer farmer, xyz.geik.glib.shades.xseries.XMaterial material, xyz.geik.glib.shades.inventorygui.InventoryGui gui) AverageProduction constructor -
Method Summary
Modifier and TypeMethodDescriptionintgetDay()Get the result in daysintgetHour()Get the result in hoursintgetMin()Get the result in minutesstatic StringupdateLore(ProductionModel productionModel, String key) Updates lore of an item
-
Constructor Details
-
ProductionModel
public ProductionModel(@NotNull @NotNull Farmer farmer, xyz.geik.glib.shades.xseries.XMaterial material, xyz.geik.glib.shades.inventorygui.InventoryGui gui) AverageProduction constructor- Parameters:
farmer- of productionmaterial- to calculategui- of farmer
-
-
Method Details
-
getMin
public int getMin()Get the result in minutes- Returns:
- result
-
getHour
public int getHour()Get the result in hours- Returns:
- result
-
getDay
public int getDay()Get the result in days- Returns:
- result
-
updateLore
Updates lore of an item- Parameters:
productionModel- model of productionkey- key of production placeholders- Returns:
- String of updated lore
-