接口 AnvilView

所有超级接口:
InventoryView

public interface AnvilView extends InventoryView
一个提供与铁砧视图数据相关额外方法的 InventoryView 实例。
  • 方法详细资料

    • getTopInventory

      @NotNull @NotNull AnvilInventory getTopInventory()
      从接口复制的说明: InventoryView
      获取此窗口视图上方的物品栏.

      原文:Get the upper inventory involved in this transaction.

      指定者:
      getTopInventory 在接口中 InventoryView
      返回:
      物品栏
    • getRenameText

      @Nullable @Nullable String getRenameText()
      获取铁砧文本字段中指定的重命名文本。
      返回:
      如果物品存在则返回铁砧文本字段中的文本,否则返回null

      原文:Gets the rename text specified within the anvil's text field.

    • getRepairItemCountCost

      int getRepairItemCountCost()
      获取修复所需的物品数量。
      返回:
      修复物品所需的材料数量

      原文:Gets the amount of items needed to repair.

    • getRepairCost

      int getRepairCost()
      获取修复所需的经验值消耗。
      返回:
      修复所需的经验值消耗

      原文:Gets the experience cost needed to repair.

    • getMaximumRepairCost

      int getMaximumRepairCost()
      获取修复所需的最大经验值消耗。
      返回:
      修复所需的最大经验值消耗

      原文:Gets the maximum repair cost needed to repair.

    • setRepairItemCountCost

      void setRepairItemCountCost(int amount)
      设置修复物品所需的修复材料数量。
      参数:
      amount - 修复材料的数量

      原文:Sets the amount of repair materials required to repair the item.

      amount - the amount of repair materials
    • setRepairCost

      void setRepairCost(int cost)
      设置修复所需的经验值消耗。
      参数:
      cost - 修复所需的经验值消耗

      原文:Sets the repair cost in experience.

      cost - the experience cost to repair
    • setMaximumRepairCost

      void setMaximumRepairCost(int levels)
      设置修复所需的最大经验值消耗。
      参数:
      levels - 要设置的等级

      原文:Sets maximum repair cost in experience.

      levels - the levels to set