Class ProductionModel

java.lang.Object
xyz.geik.farmer.modules.production.model.ProductionModel

public class ProductionModel extends Object
Production model object
Since:
1.0.0
Author:
poyraz
  • 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 production
      material - to calculate
      gui - 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

      public static String updateLore(ProductionModel productionModel, String key)
      Updates lore of an item
      Parameters:
      productionModel - model of production
      key - key of production placeholders
      Returns:
      String of updated lore