public interface IItemUtils
Modifier and Type | Method and Description |
---|---|
IItemStack |
createPotion(java.lang.Object[]... params) |
IItemStack |
createSpawnEgg(IEntityDefinition entity,
IData customNBT)
Creates a Spawnegg of the given entity
|
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[] getItemsByRegexRegistryName(java.lang.String regex)
regex
- to compare againsIItemStack[] 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(