限定符和类型 | 方法和说明 |
---|---|
int |
getMaximumRepairCost()
Get the maximum experience cost (in levels) to be allowed by the current
repair.
|
java.lang.String |
getRenameText()
获取要对于重命名的物品的字符串, 当返回空字符串时则表示是物品的默认名称
原文: Get the name to be applied to the repaired item.
|
int |
getRepairCost()
获取完成当前修复所需要的等级
原文: Get the experience cost (in levels) to complete the current repair.
|
void |
setMaximumRepairCost(int levels)
Set the maximum experience cost (in levels) to be allowed by the current
repair.
|
void |
setRepairCost(int levels)
设置完成当前修复所需要的等级.
|
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getName, getSize, getStorageContents, getTitle, getType, getViewers, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
java.lang.String getRenameText()
原文: Get the name to be applied to the repaired item. An empty string denotes the default item name.
int getRepairCost()
原文: Get the experience cost (in levels) to complete the current repair.
void setRepairCost(int levels)
原文:Set the experience cost (in levels) to complete the current repair.
levels
- 给定的等级int getMaximumRepairCost()
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.
void setMaximumRepairCost(int levels)
levels
- the maximum experience cost