Freezer (Aether Legacy)
Description
The Freezer is used to turn certain items into frozen versions.
Identifier
The identifier mods.aether_legacy.freezer will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.aether.freezer
mods.aether.Freezer
mods.aether_legacy.freezer/* Used as page default */
mods.aether_legacy.FreezerAdding Recipes
Adds the recipe:
groovymods.aether_legacy.freezer.add(AetherFreezable)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.
Recipe Builder
Create the Recipe Builder.
groovymods.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
nulland outputting errors to the log file if the validation failed, then registers the builder and returns the registered object. (returnsnullorcom.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 the recipe:
groovymods.aether_legacy.freezer.remove(AetherFreezable)Removes the recipe with the given String as its Resource Location:
groovymods.aether_legacy.freezer.remove(String)Removes the recipe with the given Resource Location:
groovymods.aether_legacy.freezer.remove(ResourceLocation)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()
