returns the display name of the itemstack
()
| 583 | * returns the display name of the itemstack |
| 584 | */ |
| 585 | public String getDisplayName() |
| 586 | { |
| 587 | String s = this.getItem().getItemStackDisplayName(this); |
| 588 | |
| 589 | if (this.stackTagCompound != null && this.stackTagCompound.hasKey("display", 10)) |
| 590 | { |
| 591 | NBTTagCompound nbttagcompound = this.stackTagCompound.getCompoundTag("display"); |
| 592 | |
| 593 | if (nbttagcompound.hasKey("Name", 8)) |
| 594 | { |
| 595 | s = nbttagcompound.getString("Name"); |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | return s; |
| 600 | } |
| 601 | |
| 602 | public ItemStack setStackDisplayName(String displayName) |
| 603 | { |
no test coverage detected