ItemMeta description?

Discussion in 'Spigot Plugin Development' started by Frealy1995, May 21, 2016.

  1. Code (Text):

                    ItemStack free = new ItemStack(Material.WOOL, 1, (byte) 5);
                    ItemMeta freemeta = free.getItemMeta();
                    freemeta.setDisplayName(ChatColor.GRAY + "Free");
    Please this is itemstack description?

    Example : Title : Free description : This is Free
  2. Choco


    Veut-tu avoir du texte sous du nom de l'objet? Le lore? Si oui, tu devrait utilizer ItemStack.getItemMeta().setLore();
    Alors quelque chose come ceci:
    Code (Java):
    ItemStack free = new ItemStack(Material.WOOL, 1, (byte) 5);
    ItemMeta freeMeta = free.getItemMeta();
    freeMeta.setLore(Arrays.asList("Ligne 1", "Ligne 2", "Ligne 3"));
    Arrays.asList("", "", "") crée un List<String> pour le lore :)

    Do you want text under the item? The lore? If so, you should use ItemStack.getItemMeta().setLore()
    So something like this: (View above)
    Arrays.asList("", "", "") creates a List<String> for the lore
    • Like Like x 1
  3. Lol :D Im not Franch
  4. Choco


    If the grammar isn't 100% perfect, I always check location ;) Just in case. Yours happens to say France, so I spoke french ;P
    Code remains the same though if you're able to read english well enough
  5. Yes, I know Thanks for example code.
    • Like Like x 1