spigot new item meta code example
Example: 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);