Class CropDefinition

java.lang.Object
ke.ric.gardening.data.CropDefinition

public class CropDefinition extends Object
Complete definition of a crop type, combining all settings. Loaded from crops.json configuration.
  • Constructor Details

  • Method Details

    • getId

      public String getId()
    • getItemId

      public String getItemId()
    • getPlantTypeId

      public String getPlantTypeId()
    • getPlantType

      public PlantType getPlantType()
    • getGrowthSettings

      public GrowthSettings getGrowthSettings()
    • getPlantingSettings

      public PlantingSettings getPlantingSettings()
    • getHarvestSettings

      public HarvestSettings getHarvestSettings()
    • getSpreadSettings

      public SpreadSettings getSpreadSettings()
    • getGrowingTexture

      public String getGrowingTexture()
    • getRipeTexture

      public String getRipeTexture()
    • getAddon

      public String getAddon()
      Get addon identifier, or null if this is a core Heirloom crop
    • isAddon

      public boolean isAddon()
      Check if this crop is from an addon
    • setPlantType

      public void setPlantType(PlantType plantType)
      Link this crop to its plant type after both are loaded.
    • canSpread

      public boolean canSpread()
      Check if this crop can spread (like vines).
    • requiresWall

      public boolean requiresWall()
      Check if this crop requires wall placement.
    • requiresCeiling

      public boolean requiresCeiling()
      Check if this crop must be attached below a ceiling support.
    • isValidWallSupport

      public boolean isValidWallSupport(org.bukkit.Material material)
      Check whether the material can support this crop as a wall-mounted vine.
    • isValidCeilingSupport

      public boolean isValidCeilingSupport(org.bukkit.Material material)
      Check whether the material can support this crop from above.
    • requiresWater

      public boolean requiresWater()
      Check if this crop requires water.
    • getTextureForProgress

      public String getTextureForProgress(double progress)
      Get the texture URL for the current growth state.