public class MCItemUtils
extends java.lang.Object
implements crafttweaker.api.item.IItemUtils
| Constructor and Description |
|---|
MCItemUtils() |
| Modifier and Type | Method and Description |
|---|---|
crafttweaker.api.data.IData |
combineEnchantments(crafttweaker.api.enchantments.IEnchantment... enchantments) |
crafttweaker.api.data.IData |
combineEnchantments(java.lang.String baseKey,
crafttweaker.api.enchantments.IEnchantment... enchantments) |
crafttweaker.api.item.IItemStack |
createEnchantedBook(crafttweaker.api.enchantments.IEnchantment... enchantments) |
static void |
createItemList() |
crafttweaker.api.item.IItemStack |
createPotion(crafttweaker.api.potions.IPotionEffect... params) |
crafttweaker.api.item.IItemStack |
createPotion(java.lang.Object[]... params) |
crafttweaker.api.item.IItemStack |
createSpawnEgg(crafttweaker.api.entity.IEntityDefinition entity,
crafttweaker.api.data.IData customNBT) |
crafttweaker.api.item.IItemStack |
enchantItem(crafttweaker.api.item.IItemStack item,
crafttweaker.api.enchantments.IEnchantment... enchantments) |
crafttweaker.api.item.IItemStack |
getItem(java.lang.String location,
int meta) |
crafttweaker.api.item.IItemStack[] |
getItemsByRegexRegistryName(java.lang.String regex) |
crafttweaker.api.item.IItemStack[] |
getItemsByRegexUnlocalizedName(java.lang.String regex) |
public static void createItemList()
public crafttweaker.api.item.IItemStack createPotion(java.lang.Object[]... params)
createPotion in interface crafttweaker.api.item.IItemUtilsparams - has to be in this syntax:
[IItemStack of the potionpublic crafttweaker.api.item.IItemStack createPotion(crafttweaker.api.potions.IPotionEffect... params)
createPotion in interface crafttweaker.api.item.IItemUtilsparams - is a series of IPotionEffects.IItemStack of the potionpublic crafttweaker.api.item.IItemStack enchantItem(crafttweaker.api.item.IItemStack item,
crafttweaker.api.enchantments.IEnchantment... enchantments)
enchantItem in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.item.IItemStack createEnchantedBook(crafttweaker.api.enchantments.IEnchantment... enchantments)
createEnchantedBook in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.data.IData combineEnchantments(java.lang.String baseKey,
crafttweaker.api.enchantments.IEnchantment... enchantments)
combineEnchantments in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.data.IData combineEnchantments(crafttweaker.api.enchantments.IEnchantment... enchantments)
combineEnchantments in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.item.IItemStack[] getItemsByRegexRegistryName(java.lang.String regex)
getItemsByRegexRegistryName in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.item.IItemStack getItem(java.lang.String location,
int meta)
getItem in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.item.IItemStack[] getItemsByRegexUnlocalizedName(java.lang.String regex)
getItemsByRegexUnlocalizedName in interface crafttweaker.api.item.IItemUtilspublic crafttweaker.api.item.IItemStack createSpawnEgg(crafttweaker.api.entity.IEntityDefinition entity,
crafttweaker.api.data.IData customNBT)
createSpawnEgg in interface crafttweaker.api.item.IItemUtils