Skip to content

Centrifuge (Advanced Rocketry)

Description

Converts an input fluid into up to 12 output items and up to 4 output fluids, 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.

Warning

The recipes performed in this machine can have more than 9 outputs, but this makes the JEI handler overflow when displaying the recipe and breaks the tooltips.

Identifier

Refer to this via any of the following:

groovy
mods.advancedrocketry.centrifuge/* Used as page default */
mods.advancedrocketry.Centrifuge

Adding Recipes

  • Add the given recipe to the recipe list:

    groovy
    mods.advancedrocketry.centrifuge.add(R)

Recipe Builder

Just like other recipe types, the Centrifuge also uses a recipe builder.

Don't know what a builder is? Check the builder info page out.

mods.advancedrocketry.centrifuge.recipeBuilder()
  • FluidStackList. Sets the fluid inputs of the recipe. Requires exactly 1.

    groovy
    fluidInput(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 less than or equal to 12.

    groovy
    output(ItemStack)
    output(ItemStack...)
    output(ItemStack, float)
    output(Collection<ItemStack>)
  • FluidStackList. Sets the fluid outputs of the recipe. Requires less than or equal to 4.

    groovy
    fluidOutput(FluidStack)
    fluidOutput(FluidStack...)
    fluidOutput(Collection<FluidStack>)
  • int. Sets the time needed to perform the recipe in ticks. Requires greater than or equal to 1. (Default 0).

    groovy
    time(int)
  • int. Sets the power consumed by the recipe in RF/t. Requires greater than or equal to 1. (Default 0).

    groovy
    power(int)
  • int. Sets the maximum amount of outputs produced by each recipe. Requires greater than or equal to 1. (Default 0).

    groovy
    outputSize(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. (returns null or zmaster587.libVulpes.interfaces.IRecipe).

    groovy
    register()
Example
groovy
mods.advancedrocketry.centrifuge.recipeBuilder()
    .fluidInput(fluid('lava') * 500)
    .output(item('minecraft:slime_ball'), 0.1f)
    .output(item('minecraft:stone'), 0.9f)
    .fluidOutput(fluid('enrichedlava') * 500)
    .power(50)
    .time(100)
    .outputSize(1)
    .register()

Removing Recipes

  • Removes the given recipe from the recipe list:

    groovy
    mods.advancedrocketry.centrifuge.remove(R)
  • Removes all recipes that match the given input:

    groovy
    mods.advancedrocketry.centrifuge.removeByInput(IIngredient)
  • Removes all registered recipes:

    groovy
    mods.advancedrocketry.centrifuge.removeAll()
Example
groovy
mods.advancedrocketry.centrifuge.removeByInput(fluid('enrichedlava'))
mods.advancedrocketry.centrifuge.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:

    groovy
    mods.advancedrocketry.centrifuge.streamRecipes()

Contributors

© 2024 CleanroomMC. All Rights Reserved.

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.

Spotlight Styles

Adjust the styles of Spotlight.

Under
Add a solid background color underneath the hovering element to highlight where the cursor is currently hovering.
Aside
Add a fixed line with solid color aside the hovering element to highlight where the cursor is currently hovering.