Taskkill Posted September 1, 2018 Share Posted September 1, 2018 I tried getUnlocalizedName() + ".name", but if the item has metadata like dye, it doesn't work. What can I do? Quote Link to comment Share on other sites More sharing options...
Taskkill Posted September 1, 2018 Author Share Posted September 1, 2018 1 minute ago, diesieben07 said: You must call ItemStack#getDisplayName only. Is that can change by anvil? I need the vanilla name... Quote Link to comment Share on other sites More sharing options...
Taskkill Posted September 1, 2018 Author Share Posted September 1, 2018 Just now, diesieben07 said: Use Item#getItemStackDisplayName(ItemStack) instead then. Thank you very much!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.