MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / setRepairCost

Method setRepairCost

src/main/java/net/minecraft/item/ItemStack.java:964–972  ·  view source on GitHub ↗

Set this stack's repair cost.

(int cost)

Source from the content-addressed store, hash-verified

962 * Set this stack's repair cost.
963 */
964 public void setRepairCost(int cost)
965 {
966 if (!this.hasTagCompound())
967 {
968 this.stackTagCompound = new NBTTagCompound();
969 }
970
971 this.stackTagCompound.setInteger("RepairCost", cost);
972 }
973
974 public Multimap<String, AttributeModifier> getAttributeModifiers()
975 {

Callers 1

updateRepairOutputMethod · 0.95

Calls 2

hasTagCompoundMethod · 0.95
setIntegerMethod · 0.80

Tested by

no test coverage detected