Freezer (Aether Legacy)
Description
The Freezer is used to turn certain items into frozen versions.
Identifier
Refer to this via any of the following:
mods.aether_legacy.freezer/* Used as page default */
mods.aether_legacy.Freezer
mods.aether.freezer
mods.aether.Freezer
Adding Recipes
Adds a Freezer recipe in the format
input
,output
,time
.:groovymods.aether_legacy.freezer.add(ItemStack, ItemStack, int)
Recipe Builder
Just like other recipe types, the Freezer also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.aether_legacy.freezer.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 time the recipe takes to complete. Requires greater than or equal to 0. (Default0
).groovytime(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.gildedgames.the_aether.api.freezables.AetherFreezable
).groovyregister()
Example
mods.aether_legacy.freezer.recipeBuilder()
.input(item('minecraft:clay'))
.output(item('minecraft:dirt'))
.time(200)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.aether_legacy.freezer.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.aether_legacy.freezer.removeAll()
Example
mods.aether_legacy.freezer.removeByOutput(item('minecraft:obsidian'))
mods.aether_legacy.freezer.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.aether_legacy.freezer.streamRecipes()