mojira.dev
MC-123708

clearCustomName() and hasDisplayName() inconsistent

The bug

The clearCustomName() and hasDisplayName() methods in the ItemStack class are inconsistent with getDisplayName() as they ignore the LocName NBT Tag used for custom translated displaynames.

Linked issues

Comments

pokechu22

hasDisplayName() only checking Name is what makes LocName-named items not render in italic (which is needed for e.g. villager treasure maps). I'm pretty sure that, as such, this is intended.

tryashtar

Also just because the MCP mappers named them in a way that would indicate they're related doesn't mean Mojang did.

TechnicianLP

Nathan Adams

Unconfirmed

Minecraft 1.12.2

Minecraft 18w01a

Retrieved