Package org.bukkit.block.data.type
Interface RespawnAnchor
'charges' represents the amount of times the anchor may still be used.
-
Method Summary
Modifier and TypeMethodDescriptionintGets the value of the 'charges' property.intGets the maximum allowed value of the 'charges' property.voidsetCharges(int charges) Sets the value of the 'charges' 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
-
getCharges
int getCharges()Gets the value of the 'charges' property.- Returns:
- the 'charges' value
-
setCharges
void setCharges(int charges) Sets the value of the 'charges' property.- Parameters:
charges- the new 'charges' value
-
getMaximumCharges
int getMaximumCharges()Gets the maximum allowed value of the 'charges' property.- Returns:
- the maximum 'charges' value
-