Soulbinder (Ender IO)
Description
Converts an input itemstack into an output itemstack, requiring one of several entities in soul vials, using energy and giving XP. Must have a unique name. To function properly, the input entities must be allowed in Soul Vials.
Identifier
Refer to this via any of the following:
mods.enderio.soul_binder/* Used as page default */
mods.enderio.soulbinder
mods.enderio.soulBinder
mods.enderio.SoulBinder
mods.eio.soul_binder
mods.eio.soulbinder
mods.eio.soulBinder
mods.eio.SoulBinder
Adding Recipes
Recipe Builder
Just like other recipe types, the Soulbinder also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.enderio.soul_binder.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the experience levels required to start the recipe. Requires greater than 0. (Default0
).groovyxp(int)
String
. Sets the unique identifier of the recipe.groovyname(String)
int
. Sets the energy cost of the recipe. Requires greater than 0. (Default0
).groovyenergy(int)
NNList<ResourceLocation>
. Sets the valid entities. Entities must be allowed in Soul Vials. Requires greater than or equal to 1.groovyentity(EntityEntry) entity(EntityEntry...) entity(Collection<EntityEntry>) entitySoul(String) entitySoul(String...) entitySoul(Collection<String>)
First validates the builder, returning
null
and outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnull
orcrazypants.enderio.base.recipe.soul.BasicSoulBinderRecipe
).groovyregister()
Example
mods.enderio.soul_binder.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.entity(entity('minecraft:zombie'), entity('minecraft:enderman'))
.name('groovy_example')
.energy(1000)
.xp(5)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.enderio.soul_binder.remove(ItemStack)
Removes all registered recipes:
groovymods.enderio.soul_binder.removeAll()
Example
mods.enderio.soul_binder.remove(item('enderio:item_material:17'))
mods.enderio.soul_binder.removeAll()
Getting the value of recipes
Iterates through every entry in the registry, with the ability to call remove on any element to remove it:
groovymods.enderio.soul_binder.streamRecipes()