Class PlantType

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

public class PlantType extends Object
Represents different types of plant growth behaviors. Each type defines how the plant block is placed and how it grows.
  • Constructor Details

    • PlantType

      public PlantType(String id, String description, org.bukkit.Material blockMaterial, double displayOffsetY, boolean requiresWater, boolean requiresWall, boolean requiresCeiling, boolean canSpread, double spreadChance, org.bukkit.block.BlockFace spreadDirection)
  • Method Details

    • getId

      public String getId()
    • getDescription

      public String getDescription()
    • getBlockMaterial

      public org.bukkit.Material getBlockMaterial()
    • getDisplayOffsetY

      public double getDisplayOffsetY()
    • requiresWater

      public boolean requiresWater()
    • requiresWall

      public boolean requiresWall()
    • requiresCeiling

      public boolean requiresCeiling()
    • canSpread

      public boolean canSpread()
    • getSpreadChance

      public double getSpreadChance()
    • getSpreadDirection

      public org.bukkit.block.BlockFace getSpreadDirection()
    • parseDirection

      public static org.bukkit.block.BlockFace parseDirection(String direction)
      Check if a block face is valid for vine attachment