Rolling Machine (Advanced Rocketry)
Description
Consumes up to 1 input fluid and up to 4 input items into up to 4 output items, consuming RF.
Warning
The 'chances' used with the recipe outputs are actually output weights. For example, setting 'chance' to 0.1 will set the output's chance to 1, unless other outputs add up to the weight of 0.9. The output chances will also not do anything unless 'outputSize' is set to a number greater than 0.
Identifier
Refer to this via any of the following:
mods.advancedrocketry.rolling_machine/* Used as page default */
mods.advancedrocketry.rollingmachine
mods.advancedrocketry.rollingMachine
mods.advancedrocketry.RollingMachine
Adding Recipes
Add the given recipe to the recipe list:
groovymods.advancedrocketry.rolling_machine.add(R)
Recipe Builder
Just like other recipe types, the Rolling Machine also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.advancedrocketry.rolling_machine.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires less than or equal to 4 and eitherinput
orfluidInput
to be non-null.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
FluidStackList
. Sets the fluid inputs of the recipe. Requires less than or equal to 1 and eitherinput
orfluidInput
to be non-null.groovyfluidInput(FluidStack) fluidInput(FluidStack...) fluidInput(Collection<FluidStack>)
ItemStackList
. Sets the item outputs of the recipe. The version with two arguments can be used to add weighted outputs. Requires greater than or equal to 1 and less than or equal to 4.groovyoutput(ItemStack) output(ItemStack...) output(ItemStack, float) output(Collection<ItemStack>)
int
. Sets the time needed to perform the recipe in ticks. Requires greater than or equal to 1. (Default0
).groovytime(int)
int
. Sets the power consumed by the recipe in RF/t. Requires greater than or equal to 1. (Default0
).groovypower(int)
int
. Sets the maximum amount of outputs produced by each recipe. Requires greater than or equal to 1. (Default0
).groovyoutputSize(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
orzmaster587.libVulpes.interfaces.IRecipe
).groovyregister()
Example
mods.advancedrocketry.rolling_machine.recipeBuilder()
.input(item('minecraft:snow'), fluid('water') * 300)
.output(item('minecraft:snow_layer') * 2)
.power(50)
.time(100)
.register()
Removing Recipes
Removes the given recipe from the recipe list:
groovymods.advancedrocketry.rolling_machine.remove(R)
Removes all recipes that match the given input:
groovymods.advancedrocketry.rolling_machine.removeByInput(IIngredient)
Removes all recipes that match the given output:
groovymods.advancedrocketry.rolling_machine.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.advancedrocketry.rolling_machine.removeAll()
Example
mods.advancedrocketry.rolling_machine.removeByInput(item('libvulpes:productplate'))
mods.advancedrocketry.rolling_machine.removeByOutput(item('libvulpes:productsheet', 1))
mods.advancedrocketry.rolling_machine.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.advancedrocketry.rolling_machine.streamRecipes()