Package dev.norska.hexp.api
Class HarvestEXPAPI
java.lang.Object
dev.norska.hexp.api.HarvestEXPAPI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic dev.norska.hexp.data.CropProfile
getCropProfile(dev.norska.hexp.HarvestEXP instance, org.bukkit.block.Block b)
Get the crop profile of a block to access it's settings (should be checked with #isValidCrop first).static Boolean
isValidCrop(dev.norska.hexp.HarvestEXP instance, org.bukkit.block.Block b)
Check if a Block is a valid crop that the plugin utilizes.
-
Constructor Details
-
HarvestEXPAPI
public HarvestEXPAPI()
-
-
Method Details
-
isValidCrop
Check if a Block is a valid crop that the plugin utilizes. You can get the instance of HarvestEXP with HarvestEXP.getInstance();.- Parameters:
HarvestEXP
- Instance, Block- Returns:
- Boolean
-
getCropProfile
public static dev.norska.hexp.data.CropProfile getCropProfile(dev.norska.hexp.HarvestEXP instance, org.bukkit.block.Block b)Get the crop profile of a block to access it's settings (should be checked with #isValidCrop first). You can get the instance of HarvestEXP with HarvestEXP.getInstance();.- Parameters:
HarvestEXP
- Instance, Block- Returns:
- CropProfile
-