接口 AnvilInventory

所有超级接口:
Inventory, Iterable<ItemStack>

public interface AnvilInventory extends Inventory
铁毡的背包界面接口
  • 方法详细资料

    • getRenameText

      @Deprecated(forRemoval=true, since="1.21") @Nullable @Nullable String getRenameText()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      获取要对于重命名的物品的字符串, 当返回空字符串时则表示是物品的默认名称

      原文: Get the name to be applied to the repaired item. An empty string denotes the default item name.

      返回:
      重命名的字符串
    • getRepairCostAmount

      @Deprecated(forRemoval=true, since="1.21") int getRepairCostAmount()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      获取完成当前修复所需物品的数量.

      原文:Get the item cost (in amount) to complete the current repair.

      返回:
      物品数量
    • setRepairCostAmount

      @Deprecated(forRemoval=true, since="1.21") void setRepairCostAmount(int amount)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      设置完成当前修复所需物品的数量.

      原文:Set the item cost (in amount) to complete the current repair.

      参数:
      amount - 物品数量
    • getRepairCost

      @Deprecated(forRemoval=true, since="1.21") int getRepairCost()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      获取完成当前修复所需要的等级

      原文: Get the experience cost (in levels) to complete the current repair.

      返回:
      需要花费的经验
    • setRepairCost

      @Deprecated(forRemoval=true, since="1.21") void setRepairCost(int levels)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      设置完成当前修复所需要的等级.

      原文:Set the experience cost (in levels) to complete the current repair.

      参数:
      levels - 给定的等级
    • getMaximumRepairCost

      @Deprecated(forRemoval=true, since="1.21") int getMaximumRepairCost()
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      获取当前修复所允许的最大经验等级花费. 如果 getRepairCost() 的结果超过返回值, 修复结果将因"太贵"而变为空气.

      默认情况下, 此等级设置为 40. 创造模式的玩家忽略此最大修复花费.

      原文:Get the maximum experience cost (in levels) to be allowed by the current repair. If the result of getRepairCost() exceeds the returned value, the repair result will be air to due being "too expensive".

      By default, this level is set to 40. Players in creative mode ignore the maximum repair cost.

      返回:
      最大经验花费
    • setMaximumRepairCost

      @Deprecated(forRemoval=true, since="1.21") void setMaximumRepairCost(int levels)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      设置当前修复所允许的最大经验等级花费. 原版 Minecraft 的默认值为 40.

      原文:Set the maximum experience cost (in levels) to be allowed by the current repair. The default value set by vanilla Minecraft is 40.

      参数:
      levels - 最大经验等级花费