Spinning Wheel (Atum 2)
Description
Converts three input items into an output itemstack after a given number of rotations for each input item, items are inserted by interacting with the top, rotations are increased by interacting with the top, and output items are extracted by interacting with the spool side.
Identifier
Refer to this via any of the following:
mods.atum.spinning_wheel/* Used as page default */
mods.atum.spinningwheel
mods.atum.spinningWheel
mods.atum.SpinningWheel
Adding Recipes
Recipe Builder
Just like other recipe types, the Spinning Wheel also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.atum.spinning_wheel.recipeBuilder()
ResourceLocation
. Sets the Resource Location of the recipe.groovyname(String) name(ResourceLocation)
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 amount of rotation required to convert the input into the output. Requires greater than 0. (Default0
).groovyrotations(int)
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
orcom.teammetallurgy.atum.api.recipe.spinningwheel.ISpinningWheelRecipe
).groovyregister()
Example
mods.atum.spinning_wheel.recipeBuilder()
.input(item('minecraft:diamond'))
.output(item('minecraft:clay'))
.rotations(1)
.register()
mods.atum.spinning_wheel.recipeBuilder()
.input(item('minecraft:gold_ingot'))
.output(item('minecraft:clay') * 4)
.rotations(5)
.register()
Removing Recipes
Removes all recipes that match the given input:
groovymods.atum.spinning_wheel.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.atum.spinning_wheel.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.atum.spinning_wheel.removeAll()
Example
mods.atum.spinning_wheel.removeByInput(item('atum:flax'))
mods.atum.spinning_wheel.removeByOutput(item('minecraft:string'))
mods.atum.spinning_wheel.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.atum.spinning_wheel.streamRecipes()