Modifier and Type | Method and 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.
|
int |
getRepairCostAmount()
Get the item cost (in amount) 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.
|
void |
setRepairCostAmount(int amount)
Set the item cost (in amount) to complete the current repair.
|
addItem, all, all, clear, clear, contains, contains, contains, contains, containsAtLeast, first, first, firstEmpty, getContents, getHolder, getItem, getLocation, getMaxStackSize, getSize, getStorageContents, getType, getViewers, isEmpty, iterator, iterator, remove, remove, removeItem, setContents, setItem, setMaxStackSize, setStorageContents
forEach, spliterator
@Nullable String getRenameText()
int getRepairCostAmount()
void setRepairCostAmount(int amount)
amount
- the amountint 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 © 2022. All rights reserved.