[SPIGOT-5272] Item meta LocalizedName is outdated Created: 17/Aug/19  Updated: 18/Aug/19  Resolved: 18/Aug/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: playbabeTheBookShelf Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.14, API, Outdated, outdatedAPI, spigot

Attachments: PNG File 2562-08-17_23.49.29.png     PNG File 2562-08-17_23.49.54.png    
Issue Links:
Duplicate
duplicates SPIGOT-4672 Serialization and de-serialization of... Resolved
Version: 1.14.4-RO.1-SNAPSHOT
Plugin: recipmanager
Guidelines Read: Yes

 Description   

item meta hasLocalizedName, getLocalizedName and setLocalizedName
is outdated

the item will generate/get/set {display:{LocName:'

{"text":"block.minecraft.iron_ore"}

'}}
which LocName was remove in 1.13 and change to translate
the correct one would be {display:Name:'

{"translate":"block.minecraft.iron_ore"}

'}

(in the picture I attached use meta.setLocalizedName, the second picture is vanilla NBT that work)



 Comments   
Comment by Duy Anh [ 18/Aug/19 ]

Mm sounds a big change. But the fact is it was updated since 1.13 and I am not sure why Bukkit was not updated this yet. Localized name and display name should be deprecated. The best solution I believe is adding new ItemMeta methods (e.g: setName, getName, hasName) which interact with the component, so we can easily set or get normal/localized name.

Generated at Wed Dec 17 15:21:20 UTC 2025 using Jira 10.3.15#10030015-sha1:909cc43d292ca09e774c1a243d9819be3f2628cd.