程序包 org.bukkit.block.data.type

# 接口 RespawnAnchor

所有超级接口:
  `BlockData`, `Cloneable`

public interface RespawnAnchor extends BlockData
'charges' 值代表重生锚还能使用几次.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getCharges()`
  获取 'charges' 属性的值.
  `int`
  `getMaximumCharges()`
  获取 'charges' 属性所能允许的最大值.
  `void`
  `setCharges(int charges)`
  设置 'charges' 属性的值.

  ### 从接口继承的方法 org.bukkit.block.data.BlockData

  `clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate`

- ## 方法详细资料

  - ### getCharges

    int getCharges()
    获取 'charges' 属性的值.

    原文: Gets the value of the 'charges' property.

    返回:
      属性 'charges' 的值

  - ### setCharges

    void setCharges(int charges)
    设置 'charges' 属性的值.

    原文: Sets the value of the 'charges' property.

    参数:
      `charges` - 新的 'charges' 属性值

  - ### getMaximumCharges

    int getMaximumCharges()
    获取 'charges' 属性所能允许的最大值.

    原文: Gets the maximum allowed value of the 'charges' property.

    返回:
      最大 'charges' 属性值