接口 AnvilInventory
铁毡的背包界面接口
-
方法概要
修饰符和类型方法说明获取要对于重命名的物品的字符串, 当返回空字符串时则表示是物品的默认名称int
获取完成当前修复所需要的等级void
setRepairCost
(int levels) 设置完成当前修复所需要的等级.从接口继承的方法 org.bukkit.inventory.Inventory
addItem, all, all, all, clear, clear, contains, contains, contains, contains, contains, contains, containsAtLeast, first, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
方法详细资料
-
getRenameText
String getRenameText()获取要对于重命名的物品的字符串, 当返回空字符串时则表示是物品的默认名称原文: Get the name to be applied to the repaired item. An empty string denotes the default item name.
- 返回:
- 重命名的字符串
-
getRepairCost
int getRepairCost()获取完成当前修复所需要的等级原文: Get the experience cost (in levels) to complete the current repair.
- 返回:
- 需要花费的经验
-
setRepairCost
void setRepairCost(int levels) 设置完成当前修复所需要的等级.原文:Set the experience cost (in levels) to complete the current repair.
- 参数:
levels
- 给定的等级
-