Ok ok so I tried the
ItemStack#getDisplayName
in my item class
ITextComponent name = ItemStack.getDisplayName();
but it says
Cannot make a static reference to the non-static method getDisplayName() from the type ItemStack
help?
Hi, I have been searching around for a while and I cant seem to find the method to find the items name. I want to have it so when one of my items get renamed in an anvil it does something. Does anyone have any ideas?
3 replies
Important Information
By using this site, you agree to our Terms of Use.