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

Method hasDisplayName

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

Returns true if the itemstack has a display name

()

Source from the content-addressed store, hash-verified

644 * Returns true if the itemstack has a display name
645 */
646 public boolean hasDisplayName()
647 {
648 return this.stackTagCompound == null ? false : (!this.stackTagCompound.hasKey("display", 10) ? false : this.stackTagCompound.getCompoundTag("display").hasKey("Name", 8));
649 }
650
651 public List<String> getTooltip(EntityPlayer playerIn, boolean advanced)
652 {

Callers 15

getTooltipMethod · 0.95
getChatComponentMethod · 0.95
getCraftingResultMethod · 0.95
getCraftingResultMethod · 0.95
updateRepairOutputMethod · 0.95
getDeathMessageMethod · 0.95
getDeathMessageMethod · 0.95
getDeathMessageMethod · 0.95
interactMethod · 0.95
canOpenMethod · 0.95
renderNameMethod · 0.80
func_181551_aMethod · 0.80

Calls 2

hasKeyMethod · 0.80
getCompoundTagMethod · 0.80

Tested by

no test coverage detected