Package org.bukkit.block.data.type
Interface Leaves
- All Superinterfaces:
- BlockData,- Cloneable,- Waterlogged
'persistent' indicates whether or not leaves will be checked by the server to
 see if they are subject to decay or not.
 
'distance' denotes how far the block is from a tree and is used in conjunction with 'persistent' flag to determine if the leaves will decay or not.
'distance' denotes how far the block is from a tree and is used in conjunction with 'persistent' flag to determine if the leaves will decay or not.
- 
Method SummaryModifier and TypeMethodDescriptionintGets the value of the 'distance' property.intGets the maximum allowed value of the 'distance' property.intGets the minimum allowed value of the 'distance' property.booleanGets the value of the 'persistent' property.voidsetDistance(int distance) Sets the value of the 'distance' property.voidsetPersistent(boolean persistent) Sets the value of the 'persistent' property.Methods inherited from interface org.bukkit.block.data.BlockDataclone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, requiresCorrectToolForDropsMethods inherited from interface org.bukkit.block.data.WaterloggedisWaterlogged, setWaterlogged
- 
Method Details- 
isPersistentboolean isPersistent()Gets the value of the 'persistent' property.- Returns:
- the persistent value
 
- 
setPersistentvoid setPersistent(boolean persistent) Sets the value of the 'persistent' property.- Parameters:
- persistent- the new 'persistent' value
 
- 
getDistanceint getDistance()Gets the value of the 'distance' property.- Returns:
- the 'distance' value
 
- 
setDistancevoid setDistance(int distance) Sets the value of the 'distance' property.- Parameters:
- distance- the new 'distance' value
 
- 
getMaximumDistanceint getMaximumDistance()Gets the maximum allowed value of the 'distance' property.- Returns:
- the maximum 'distance' value
 
- 
getMinimumDistanceint getMinimumDistance()Gets the minimum allowed value of the 'distance' property.- Returns:
- the minimum 'distance' value
 
 
-