[1.13 Suggestion] Get the block names from getNameTextComponent
TheLimePixel opened this issue ยท 4 comments
Currently in Minecraft 1.13.2 you seem to getting the name of the blocks a player's looking at through their translation key, however, this doesn't take into account the mods that override getNameTextComponent so that they have more customization over their final localized name. For example: https://github.com/EmosewaPixel/PixelLib/blob/fe4ea235601de9a336f769b41d8c85f94d9779cf/src/main/java/com/EmosewaPixel/pixellib/blocks/MaterialBlock.java#L41
Names are obtained via the item's stack-sensitive getTranslationKey()
method.
Well, that's the same problem as in mine and in some other mods getDisplayName is overriden rather than the translation key of the block item.
I don't see why your usecase would not fit into the stack aware getTranslationKey()
method.