Inscriber (Applied Energistics 2)
Description
Converts an item into another item, requiring either one or two additional items as either catalysts or ingredients.
Identifier
Refer to this via any of the following:
mods.ae2.inscriber
mods.ae2.Inscriber
mods.appliedenergistics2.inscriber/* Used as page default */
mods.appliedenergistics2.Inscriber
Adding Recipes
Recipe Builder
Just like other recipe types, the Inscriber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.appliedenergistics2.inscriber.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>)
ItemStack
. Sets the top item of the inscriber recipe. Requires either top or bottom to be non-empty. (DefaultItemStack.EMPTY
).groovytop(ItemStack)
InscriberProcessType
. Sets the type of recipe, determining if the top/bottom items function as catalysts. Requires not null. (DefaultInscriberProcessType.PRESS
).groovytype(String) type(InscriberProcessType) press() inscribe()
ItemStack
. Sets the bottom item of the inscriber recipe. Requires either top or bottom to be non-empty. (DefaultItemStack.EMPTY
).groovybottom(ItemStack)
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
orappeng.api.features.IInscriberRecipe
).groovyregister()
Example
mods.appliedenergistics2.inscriber.recipeBuilder()
.input(ore('blockGlass'))
.output(item('minecraft:diamond'))
.top(item('minecraft:diamond'))
.bottom(item('minecraft:diamond'))
.inscribe()
.register()
mods.appliedenergistics2.inscriber.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:diamond'))
.top(item('minecraft:diamond'))
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.appliedenergistics2.inscriber.removeByOutput(ItemStack)
Removes all registered recipes:
groovymods.appliedenergistics2.inscriber.removeAll()
Example
mods.appliedenergistics2.inscriber.removeByOutput(item('appliedenergistics2:material:59'))
mods.appliedenergistics2.inscriber.removeAll()