Spinning Wheel (Bewitchment)
Description
Converts up to 4 itemstacks into up to 2 output itemstacks in the Spinning Wheel at the cost of 1 Magic Power per tick. Takes 10 seconds.
Identifier
Refer to this via any of the following:
mods.bewitchment.spinning_wheel/* Used as page default */
mods.bewitchment.spinningwheel
mods.bewitchment.spinningWheel
mods.bewitchment.SpinningWheelAdding Recipes
Adds the recipe:
groovymods.bewitchment.spinning_wheel.add(SpinningWheelRecipe)
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.
Recipe Builder
Create the Recipe Builder.
groovymods.bewitchment.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 greater than or equal to 1 and less than or equal to 4.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)ItemStackList. Sets the item outputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
First validates the builder, returning
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorcom.bewitchment.api.registry.SpinningWheelRecipe).groovyregister()
Example
mods.bewitchment.spinning_wheel.recipeBuilder()
.input(item('minecraft:string'), item('minecraft:string'), item('minecraft:string'), item('minecraft:string'))
.output(item('minecraft:gold_ingot') * 4, item('minecraft:web'))
.register()Removing Recipes
Removes the recipe with the given Resource Location:
groovymods.bewitchment.spinning_wheel.remove(ResourceLocation)Removes the recipe with the given String as its Resource Location:
groovymods.bewitchment.spinning_wheel.remove(String)Removes the recipe:
groovymods.bewitchment.spinning_wheel.remove(SpinningWheelRecipe)Removes all recipes that match the given input:
groovymods.bewitchment.spinning_wheel.removeByInput(IIngredient)Removes all recipes that match the given output:
groovymods.bewitchment.spinning_wheel.removeByOutput(IIngredient)Removes all registered recipes:
groovymods.bewitchment.spinning_wheel.removeAll()
Example
mods.bewitchment.spinning_wheel.remove(resource('bewitchment:cobweb'))
mods.bewitchment.spinning_wheel.removeByInput(item('minecraft:string'))
mods.bewitchment.spinning_wheel.removeByOutput(item('bewitchment:spirit_string'))
mods.bewitchment.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.bewitchment.spinning_wheel.streamRecipes()
