Package org.bukkit.block.data.type
Interface RespawnAnchor
'charges' represents the amount of times the anchor may still be used.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the value of the 'charges' property.int
Gets the maximum allowed value of the 'charges' property.void
setCharges
(int charges) Sets the value of the 'charges' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, 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
-