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

Method getRepairCost

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

Get this stack's repair cost, or 0 if no repair cost is defined.

()

Source from the content-addressed store, hash-verified

954 * Get this stack's repair cost, or 0 if no repair cost is defined.
955 */
956 public int getRepairCost()
957 {
958 return this.hasTagCompound() && this.stackTagCompound.hasKey("RepairCost", 3) ? this.stackTagCompound.getInteger("RepairCost") : 0;
959 }
960
961 /**
962 * Set this stack's repair cost.

Callers 1

updateRepairOutputMethod · 0.95

Calls 3

hasTagCompoundMethod · 0.95
hasKeyMethod · 0.80
getIntegerMethod · 0.80

Tested by

no test coverage detected