Class ProductionModel
java.lang.Object
xyz.geik.farmer.modules.production.model.ProductionModel
Production model object
- Since:
- 1.0.0
- Author:
- poyraz
-
Constructor Summary
ConstructorDescriptionProductionModel
(@NotNull Farmer farmer, xyz.geik.glib.shades.xseries.XMaterial material, xyz.geik.glib.shades.inventorygui.InventoryGui gui) AverageProduction constructor -
Method Summary
Modifier and TypeMethodDescriptionint
getDay()
Get the result in daysint
getHour()
Get the result in hoursint
getMin()
Get the result in minutesstatic String
updateLore
(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
-