接口 AnvilView
- 所有超级接口:
InventoryView
一个提供与铁砧视图数据相关额外方法的
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明int获取修复所需的最大经验值消耗。获取铁砧文本字段中指定的重命名文本。int获取修复所需的经验值消耗。int获取修复所需的物品数量。获取此窗口视图上方的物品栏.voidsetMaximumRepairCost(int levels) 设置修复所需的最大经验值消耗。voidsetRepairCost(int cost) 设置修复所需的经验值消耗。voidsetRepairItemCountCost(int amount) 设置修复物品所需的修复材料数量。从接口继承的方法 org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
-
方法详细资料
-
getTopInventory
从接口复制的说明:InventoryView获取此窗口视图上方的物品栏.原文:Get the upper inventory involved in this transaction.
- 指定者:
getTopInventory在接口中InventoryView- 返回:
- 物品栏
-
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
-