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, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
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
-