Package org.bukkit.block.data.type
Interface PinkPetals
- All Superinterfaces:
BlockData,Cloneable,Directional
'flower_amount' represents the number of petals.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the value of the 'flower_amount' property.intGets the maximum allowed value of the 'flower_amount' property.voidsetFlowerAmount(int flower_amount) Sets the value of the 'flower_amount' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, createBlockState, getAsString, getAsString, getDestroySpeed, getDestroySpeed, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotateMethods 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
-