Answers for "item meta spigot"

1

item meta spigot

ItemStack itemStack = new ItemStack(Material.IRON_SWORD);
ItemMeta meta = itemStack.getItemMeta();

meta.setDisplayName("example");
meta.setLore(Arrays.asList("line 1", "line2"));

itemStack.setItemMeta(meta);
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language