接口 AnvilView
- 所有超级接口:
InventoryView
An instance of
InventoryView
which provides extra methods related to
anvil view data.-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property
-
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE
-
方法概要
修饰符和类型方法说明int
Gets the maximum repair cost needed to repair.Gets the rename text specified within the anvil's text field.int
Gets the experience cost needed to repair.int
Gets the amount of items needed to repair.获取此窗口视图上方的物品栏.void
setMaximumRepairCost
(int levels) Sets maximum repair cost in experience.void
setRepairCost
(int cost) Sets the repair cost in experience.void
setRepairItemCountCost
(int amount) Sets the amount of repair materials required to repair the item.从接口继承的方法 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
Gets the rename text specified within the anvil's text field.- 返回:
- The text within the anvil's text field if an item is present otherwise null
-
getRepairItemCountCost
int getRepairItemCountCost()Gets the amount of items needed to repair.- 返回:
- The amount of materials required to repair the item
-
getRepairCost
int getRepairCost()Gets the experience cost needed to repair.- 返回:
- The repair cost in experience
-
getMaximumRepairCost
int getMaximumRepairCost()Gets the maximum repair cost needed to repair.- 返回:
- The maximum repair cost in experience
-
setRepairItemCountCost
void setRepairItemCountCost(int amount) Sets the amount of repair materials required to repair the item.- 参数:
amount
- the amount of repair materials
-
setRepairCost
void setRepairCost(int cost) Sets the repair cost in experience.- 参数:
cost
- the experience cost to repair
-
setMaximumRepairCost
void setMaximumRepairCost(int levels) Sets maximum repair cost in experience.- 参数:
levels
- the levels to set
-