Thanks to Conclure for letting me see his item framework.
I tried creating a very simple one of my own, but im too stupid to actually use it. Could someone please explain how I integrate it in an actual custom item class?
public class CustomItem {
List<String> lore = new ArrayList();
public static ItemStack itemStackName;
public void setItemMeta(String materialName, String displayName, boolean isUnbreakable) {
Material material = Material.matchMaterial(materialName);
ItemStack customItem = new ItemStack(material);
ItemMeta customMeta = customItem.getItemMeta();
customMeta.setDisplayName(displayName);
customMeta.setUnbreakable(isUnbreakable);
customMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES, ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_UNBREAKABLE);
customMeta.setLore(lore);
}
}