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

Method setItemDamage

src/main/java/net/minecraft/item/ItemStack.java:278–286  ·  view source on GitHub ↗
(int meta)

Source from the content-addressed store, hash-verified

276 }
277
278 public void setItemDamage(int meta)
279 {
280 this.itemDamage = meta;
281
282 if (this.itemDamage < 0)
283 {
284 this.itemDamage = 0;
285 }
286 }
287
288 /**
289 * Returns the max damage an item in the stack can take.

Callers 13

tryUseItemMethod · 0.95
updateRepairOutputMethod · 0.95
getItemStackMethod · 0.95
dropEquipmentMethod · 0.95
onLivingUpdateMethod · 0.95
onLivingUpdateMethod · 0.95
onPlayerRightClickMethod · 0.80
getMapDataMethod · 0.80
onCreatedMethod · 0.80
brewPotionsMethod · 0.80
setPotionDamageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected