Question Get itemstack name

senneb

New member
Jun 22, 2022
14
0
1
How do I get the name of an itemstack in 1.18.2? itemStack.getDisplayname() doesn't work.
 
Version Output
This server is running Paper version git-Paper-386 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT) (Git: 072f54c on ver/1.18.2)