[LIB] CleanItems - Create your custom items with ease!

Discussion in 'Resources' started by TheKomputerKing, Mar 3, 2014.

  1. Offline

    TheKomputerKing

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I've written a small lib for simplifying the creation of custom ItemStacks, you can grab it here.

    Here's an example of using it:

    Code:java
    1. event.getPlayer().getInventory().addItem(new CleanItem(Material.BOW)
    2. .withName("Bow of Power")
    3. .amount(1)
    4. .withLore(ChatColor.GREEN + "A super powerful bow.")
    5. .withLore(ChatColor.GOLD + "" + ChatColor.UNDERLINE + "WITH A SUPER POWERFUL LORE!")
    6. .withLores(new String[]{"A line!", "Another line!"})
    7. .withEnchantment(Enchantment.ARROW_INFINITE, 1, true)
    8. .withEnchantment(Enchantment.ARROW_FIRE, 1, true)
    9. .withEnchantment(Enchantment.ARROW_DAMAGE, 7, true)
    10. .withDurability((short) 383)
    11. .toItemStack());


    This code will result in the following:
    [​IMG]

    Hope you can get some use out of this ;)
     
    Phasesaber, CraftThatBlock and Desle like this.
  2. Offline

    Ultimate_n00b

    My BukkitDev Profile
    My Plugins (7)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I personally prefer my own, it's a lot cleaner.
     
    Phasesaber likes this.
  3. Offline

    TheKomputerKing

    My BukkitDev Profile
    My Plugins (4)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ultimate_n00b

    I really don't see much of a difference, except a few getters.
     
  4. Offline

    Ultimate_n00b

    My BukkitDev Profile
    My Plugins (7)
    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    TheKomputerKing It has the ability to be cloned as well as a way to match it to others. It as well contains the ability to set it as a Potion, which I as well have a PotionBuilder I use.
     

Share This Page