Package org.bukkit.block.data.type
Interface Snow
'layers' represents the amount of layers of snow which are present in this
block.
May not be lower than
May not be lower than
getMinimumLayers() or higher than
getMaximumLayers().-
Method Summary
Modifier and TypeMethodDescriptionintGets the value of the 'layers' property.intGets the maximum allowed value of the 'layers' property.intGets the minimum allowed value of the 'layers' property.voidsetLayers(int layers) Sets the value of the 'layers' 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, rotate
-
Method Details
-
getLayers
int getLayers()Gets the value of the 'layers' property.- Returns:
- the 'layers' value
-
setLayers
void setLayers(int layers) Sets the value of the 'layers' property.- Parameters:
layers- the new 'layers' value
-
getMinimumLayers
int getMinimumLayers()Gets the minimum allowed value of the 'layers' property.- Returns:
- the minimum 'layers' value
-
getMaximumLayers
int getMaximumLayers()Gets the maximum allowed value of the 'layers' property.- Returns:
- the maximum 'layers' value
-