Modifier and Type | Method | Description |
---|---|---|
int |
getMaximumRepairCost() |
Get the maximum experience cost (in levels) to be allowed by the current
repair.
|
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) |
Set the experience cost (in levels) to complete the current repair.
|
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, removeItemAnySlot, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
@Nullable String getRenameText()
int getRepairCost()
void setRepairCost(int levels)
levels
- the experience costint 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 costCopyright © 2020. All rights reserved.