public interface IItemUtils
| Modifier and Type | Method and Description |
|---|---|
IData |
combineEnchantments(IEnchantment... enchantments) |
IData |
combineEnchantments(java.lang.String baseKey,
IEnchantment... enchantments) |
IItemStack |
createEnchantedBook(IEnchantment... enchantments) |
IItemStack |
createPotion(IPotionEffect... params) |
IItemStack |
createPotion(java.lang.Object[]... params) |
IItemStack |
createSpawnEgg(IEntityDefinition entity,
IData customNBT)
Creates a Spawnegg of the given entity
|
IItemStack |
enchantItem(IItemStack item,
IEnchantment... enchantments) |
IItemStack |
getItem(java.lang.String location,
int meta)
Invokes the Bracket Handler Item method
|
IItemStack[] |
getItemsByRegexRegistryName(java.lang.String regex)
Gets all Items where the Regex matches the Registry name
check in syntax "mod:item:meta"
meta is always present
|
IItemStack[] |
getItemsByRegexUnlocalizedName(java.lang.String regex)
Gets all Items where the Regex matches the Unlocalized name
check in syntax "mod:item:meta"
meta is always present
|
IItemStack createPotion(java.lang.Object[]... params)
params - has to be in this syntax:
[IItemStack of the potionIItemStack createPotion(IPotionEffect... params)
params - list of IPotionEffectsIItemStack of the potionIItemStack enchantItem(IItemStack item, IEnchantment... enchantments)
item - An item to be enchanted. Outside of checking for enchantments - List of enchantments, the result of (eg):
IItemStack of the item with new enchantments.IItemStack createEnchantedBook(IEnchantment... enchantments)
enchantments - List of enchantment, the result of (eg):
IItemStack of the enchanted book.IData combineEnchantments(java.lang.String baseKey, IEnchantment... enchantments)
baseKey - The base key, one of either "ench" or "StoredEnchantments". The former
functions for enchanted items (swords, weapons, tools, etc) while the latter
is specifically for Enchanted Books.enchantments - Contains the enchantment to combine, result of (eg):
IData combineEnchantments(IEnchantment... enchantments)
enchantments - Contains the enchantment to combine, result of (eg):
IItemStack[] getItemsByRegexRegistryName(java.lang.String regex)
regex - to compare againsIItemStack getItem(java.lang.String location, int meta)
location - What you would write in the BH, e.g. "minecraft:dirt"meta - The metadata, default to 0IItemStack[] getItemsByRegexUnlocalizedName(java.lang.String regex)
regex - to compare againsIItemStack createSpawnEgg(IEntityDefinition entity, IData customNBT)
entity - customNBT - NBT that the Item should have, entity gets overwritten by function
example: itemUtils.createSpawnEgg(