Class HarvestEXPAPI

java.lang.Object
dev.norska.hexp.api.HarvestEXPAPI

public class HarvestEXPAPI extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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).
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HarvestEXPAPI

      public HarvestEXPAPI()
  • Method Details

    • isValidCrop

      public 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. 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