Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public static ItemStack createItem(Material material, String displayName, Integer amount, String[] lore)
  2. {
  3. ItemStack itemStack = new ItemStack(material, amount.intValue());
  4. ItemMeta itemMeta = itemStack.getItemMeta();
  5. itemMeta.setDisplayName(displayName);
  6. itemMeta.setLore(Arrays.asList(lore));
  7. itemStack.setItemMeta(itemMeta);
  8.  
  9. return itemStack;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement