Package org.bukkit.block.data.type
Interface LeafLitter
- All Superinterfaces:
BlockData
,Cloneable
,Directional
'segment_amount' represents the number of segments.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the maximum allowed value of the 'segment_amount' property.int
Gets the value of the 'segment_amount' property.void
setSegmentAmount
(int segment_amount) Sets the value of the 'segment_amount' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Method Details
-
getSegmentAmount
int getSegmentAmount()Gets the value of the 'segment_amount' property.- Returns:
- the 'segment_amount' value
-
setSegmentAmount
void setSegmentAmount(int segment_amount) Sets the value of the 'segment_amount' property.- Parameters:
segment_amount
- the new 'segment_amount' value
-
getMaximumSegmentAmount
int getMaximumSegmentAmount()Gets the maximum allowed value of the 'segment_amount' property.- Returns:
- the maximum 'segment_amount' value
-