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
AutoHarvest module main class
-
Constructor Summary
-
Method Summary
Methods inherited from class xyz.geik.farmer.modules.FarmerModule
calculateModulesUseGui, databaseGetAttributes, databaseUpdateAttribute, setLang
Methods inherited from class xyz.geik.glib.module.GModule
addDependency, getDependencies, getDependencyListAsString, getName, isEnabled, setEnabled
-
Constructor Details
-
AutoHarvest
public AutoHarvest()Constructor of class
-
-
Method Details
-
onEnable
public void onEnable()onEnable method of module- Specified by:
onEnable
in interfacexyz.geik.glib.module.Modulable
- Overrides:
onEnable
in classxyz.geik.glib.module.GModule
-
onReload
public void onReload()onReload method of module- Specified by:
onReload
in interfacexyz.geik.glib.module.Modulable
- Overrides:
onReload
in classxyz.geik.glib.module.GModule
-
onDisable
public void onDisable()onDisable method of module- Specified by:
onDisable
in interfacexyz.geik.glib.module.Modulable
- Overrides:
onDisable
in classxyz.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
-