Package org.bukkit.block.data.type
Interface PinkPetals
- All Superinterfaces:
BlockData
,Cloneable
,Directional
'flower_amount' represents the number of petals.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of the 'flower_amount' property.int
Gets the maximum allowed value of the 'flower_amount' property.void
setFlowerAmount
(int flower_amount) Sets the value of the 'flower_amount' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, requiresCorrectToolForDrops
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Method Details
-
getFlowerAmount
int getFlowerAmount()Gets the value of the 'flower_amount' property.- Returns:
- the 'flower_amount' value
-
setFlowerAmount
void setFlowerAmount(int flower_amount) Sets the value of the 'flower_amount' property.- Parameters:
flower_amount
- the new 'flower_amount' value
-
getMaximumFlowerAmount
int getMaximumFlowerAmount()Gets the maximum allowed value of the 'flower_amount' property.- Returns:
- the maximum 'flower_amount' value
-