Class PlantType
java.lang.Object
ke.ric.gardening.data.PlantType
Represents different types of plant growth behaviors.
Each type defines how the plant block is placed and how it grows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.bukkit.MaterialdoublegetId()doubleorg.bukkit.block.BlockFacestatic org.bukkit.block.BlockFaceparseDirection(String direction) Check if a block face is valid for vine attachmentbooleanbooleanboolean
-
Constructor Details
-
PlantType
-
-
Method Details
-
getId
-
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
Check if a block face is valid for vine attachment
-