[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: |
|
||||||||
| Issue Links: |
|
||||||||
| Version: | 1.14.4-RO.1-SNAPSHOT | ||||||||
| Plugin: | recipmanager | ||||||||
| Guidelines Read: | Yes | ||||||||
| Description |
|
item meta hasLocalizedName, getLocalizedName and setLocalizedName the item will generate/get/set {display:{LocName:' {"text":"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. |