Package org.bukkit.block.data
Interface Segmentable
- All Known Subinterfaces:
LeafLitter
'segment_amount' represents the number of segment in this block.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the maximum allowed value of the 'segment_amount' property.intGets the minimum allowed value of the 'segment_amount' property.intGets the value of the 'segment_amount' property.voidsetSegmentAmount(int segmentAmount) Sets the value of the 'segment_amount' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isReplaceable, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Method Details
-
getSegmentAmount
int getSegmentAmount()Gets the value of the 'segment_amount' property.- Returns:
- the 'segment_amount' value
-
setSegmentAmount
void setSegmentAmount(int segmentAmount) Sets the value of the 'segment_amount' property.- Parameters:
segmentAmount- the new 'segment_amount' value
-
getMinimumSegmentAmount
int getMinimumSegmentAmount()Gets the minimum allowed value of the 'segment_amount' property.- Returns:
- the minimum 'segment_amount' value
-
getMaximumSegmentAmount
int getMaximumSegmentAmount()Gets the maximum allowed value of the 'segment_amount' property.- Returns:
- the maximum 'segment_amount' value
-