Sueta

ItemFactoryAPI

0.2.0

Create ItemStacks on the fly

·Plugin

Create ItemStacks on the fly with these options:

- Displayname
- Material (logically)
- Amount
- Lore
- Shiny

TODO
- adding ItemFactoryAdvanced to generate ItemStacks with even more options

Usage

//returns ItemStack

//generates Shiny Dirt block with 3 lore lines and the displayname Title
ItemFactory.generateItemStack("Title", Material.DIRT, true, "Line 1", "Line 2", "Line 3");

//generates Dirt block
ItemFactory.generateItemStack(Material.DIRT);

//generates 3 Dirt blocks
ItemFactory.generateItemStack(Material.DIRT, 3);

//generates 3 Potion blocks
ItemFactory.generatePotion(3, Color.LIME, new PotionEffect(PotionEffectType.HEALTH_BOOST, 10, 2));

//returns String

//get ItemStack Displayname without colors
ItemFactory.getUsableItemName(item);

Similar projects

Plugin →