Package dev.sefiraat.sefilib.itemstacks
Class ItemStackGenerators
java.lang.Object
dev.sefiraat.sefilib.itemstacks.ItemStackGenerators
This class contains a bunch of static methods that can be used to create
ItemStacks.-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStackcreateEnchantedItemStack(Material material, boolean hide, io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair<Enchantment, Integer>... enchantments) static ItemStackcreateEnchantedItemStack(Material material, io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair<Enchantment, Integer>... enchantments) static ItemStackcreatePotion(Color color)
-
Method Details
-
createPotion
- Parameters:
color- TheColorof the potion- Returns:
- A
ItemStackwith the givenColorandPotionTypeof WATER
-
createEnchantedItemStack
@Nonnull @SafeVarargs public static ItemStack createEnchantedItemStack(@Nonnull Material material, @Nonnull io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair<Enchantment, Integer>... enchantments) Creates an EnchantedItemStackwith the givenEnchantmentandIntegerlevel. Items created this way will NOT have their enchants hidden.- Parameters:
material- TheMaterialof theItemStackenchantments- TheEnchantments and levels to add to theItemStack- Returns:
- An
ItemStackwith the givenEnchantmentandIntegerlevel
-
createEnchantedItemStack
@Nonnull @SafeVarargs public static ItemStack createEnchantedItemStack(@Nonnull Material material, boolean hide, @Nonnull io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair<Enchantment, Integer>... enchantments) - Parameters:
material- TheMaterialof theItemStackhide- Whether or not to hide the enchants of theItemStackenchantments- TheEnchantments and levels to add to theItemStack- Returns:
- An
ItemStackwith the givenEnchantmentandIntegerlevel
-