程序包 org.bukkit.block

接口 Vault

所有超级接口:
BlockState, Metadatable, PersistentDataHolder, TileState

@Experimental public interface Vault extends TileState
代表一个捕获的保险库状态. 原文:Represents a captured state of a vault.
  • 方法详细资料

    • getActivationRange

      double getActivationRange()
      获取玩家必须进入才能激活此保险库的距离. 原文:Gets the distance at which a player must enter for this vault to activate.
      返回:
      玩家必须进入才能激活此保险库的距离 原文:the distance at which a player must enter for this vault to activate.
    • setActivationRange

      void setActivationRange(double range)
      设置玩家必须进入才能激活此保险库的距离. 原文:Sets the distance at which a player must enter for this vault to activate.
      参数:
      range - 玩家必须进入才能激活此保险库的距离 原文:the distance at which a player must enter for this vault to activate.
    • getDeactivationRange

      double getDeactivationRange()
      获取玩家必须退出才能停用此保险库的距离. 原文:Gets the distance at which a player must exit for the vault to deactivate.
      返回:
      玩家必须退出才能停用此保险库的距离 原文:the distance at which a player must exit for the vault to deactivate.
    • setDeactivationRange

      void setDeactivationRange(double range)
      设置玩家必须退出才能停用此保险库的距离. 原文:Sets the distance at which a player must exit for the vault to deactivate.
      参数:
      range - 玩家必须退出才能停用此保险库的距离 原文:the distance at which a player must exit for this vault to deactivate.
    • getLootTable

      @NotNull @NotNull LootTable getLootTable()
      获取此保险库将从中选择奖励的战利品表. 原文:Gets the LootTable this vault will pick rewards from.
      返回:
      战利品表 原文:the loot table
    • setLootTable

      void setLootTable(@NotNull @NotNull LootTable table)
      设置此保险库将从中选择奖励的战利品表. 原文:Sets the LootTable this vault will pick rewards from.
      参数:
      table - 战利品表 原文:the loot table
    • getDisplayLootTable

      @Nullable @Nullable LootTable getDisplayLootTable()
      获取此保险库将用于显示物品的战利品表.
      如果此值为null,则将使用常规战利品表来显示物品. 原文:Gets the LootTable this vault will display items from.
      If this value is null the regular loot table will be used to display items.
      返回:
      用于显示物品的战利品表 原文:the loot table to display items from
    • setDisplayLootTable

      void setDisplayLootTable(@Nullable @Nullable LootTable table)
      设置此保险库将用于显示物品的战利品表.
      如果此值设置为null,则将使用常规战利品表来显示物品. 原文:Sets the LootTable this vault will display items from.
      If this value is set to null the regular loot table will be used to display items.
      参数:
      table - 用于显示物品的战利品表 原文:the loot table to display items from
    • getKeyItem

      获取玩家必须用来解锁此保险库的物品堆. 原文:Gets the ItemStack players must use to unlock this vault.
      返回:
      钥匙物品 原文:the key item
    • setKeyItem

      void setKeyItem(@NotNull @NotNull ItemStack keyItem)
      设置玩家必须用来解锁此保险库的物品堆. 原文:Sets the ItemStack players must use to unlock this vault.
      参数:
      keyItem - 钥匙物品 原文:the key item
    • getRewardedPlayers

      @NotNull @NotNull Set<UUID> getRewardedPlayers()
      获取已经从此保险库收到奖励的玩家. 原文:Gets the players who have already received rewards from this vault.
      返回:
      玩家UUID的不可修改集合 原文:unmodifiable set of player UUIDs
      抛出:
      IllegalStateException - 如果此方块状态未被放置 原文:if this block state is not placed