Class AutoHarvest

java.lang.Object
xyz.geik.glib.module.GModule
xyz.geik.farmer.modules.FarmerModule
xyz.geik.farmer.modules.autoharvest.AutoHarvest
All Implemented Interfaces:
xyz.geik.glib.module.Modulable

public class AutoHarvest extends FarmerModule
AutoHarvest module main class
  • Constructor Details

    • AutoHarvest

      public AutoHarvest()
      Constructor of class
  • Method Details

    • onEnable

      public void onEnable()
      onEnable method of module
      Specified by:
      onEnable in interface xyz.geik.glib.module.Modulable
      Overrides:
      onEnable in class xyz.geik.glib.module.GModule
    • onReload

      public void onReload()
      onReload method of module
      Specified by:
      onReload in interface xyz.geik.glib.module.Modulable
      Overrides:
      onReload in class xyz.geik.glib.module.GModule
    • onDisable

      public void onDisable()
      onDisable method of module
      Specified by:
      onDisable in interface xyz.geik.glib.module.Modulable
      Overrides:
      onDisable in class xyz.geik.glib.module.GModule
    • checkCrop

      public static boolean checkCrop(xyz.geik.glib.shades.xseries.XMaterial material)
      Checks if auto harvest collect this crop.
      Parameters:
      material - of crop
      Returns:
      is crop can harvestable