Skip to content

Squeezer (Integrated Dynamics)

Description

Takes an item and can give up to 3 chanced item outputs and a fluid.

Identifier

Refer to this via any of the following:

groovy
mods.id.squeezer
mods.id.Squeezer
mods.integrateddynamics.squeezer/* Used as page default */
mods.integrateddynamics.Squeezer

Adding Recipes

Recipe Builder

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

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

mods.integrateddynamics.squeezer.recipeBuilder()
  • IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.

    groovy
    input(IIngredient)
    input(IIngredient...)
    input(Collection<IIngredient>)
  • FluidStackList. Sets the fluid outputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1.

    groovy
    fluidOutput(FluidStack)
    fluidOutput(FluidStack...)
    fluidOutput(Collection<FluidStack>)
  • boolean. Sets if the recipe is added to the basic (Squeezer) machine. (Default true).

    groovy
    basic()
    basic(boolean)
  • List<IngredientRecipeComponent>. Sets the possible item outputs and chance of those outputs being dropped. Requires greater than or equal to 0 and less than or equal to 3.

    groovy
    output(ItemStack)
    output(ItemStack, float)
  • int. Sets the time in ticks the recipe takes to process in the Mechanical Squeezer, has no effect on the Squeezer. (Default 10).

    groovy
    duration(int)
  • boolean. Sets if the recipe is added to the mechanical (Mechanical Squeezer) machine. (Default false).

    groovy
    mechanical()
    mechanical(boolean)
  • 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 org.cyclops.cyclopscore.recipe.custom.api.IRecipe<org.cyclops.cyclopscore.recipe.custom.component.IngredientRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.IngredientsAndFluidStackRecipeComponent, org.cyclops.cyclopscore.recipe.custom.component.DummyPropertiesComponent>).

    groovy
    register()
Example
groovy
mods.integrateddynamics.squeezer.recipeBuilder()
    .input(item('minecraft:clay'))
    .output(item('minecraft:clay_ball'), 1F)
    .output(item('minecraft:clay_ball') * 2, 0.7F)
    .output(item('minecraft:clay_ball') * 10, 0.2F)
    .fluidOutput(fluid('lava') * 2000)
    .mechanical()
    .duration(5)
    .register()

mods.integrateddynamics.squeezer.recipeBuilder()
    .input(item('minecraft:gold_ingot'))
    .output(item('minecraft:clay'), 0.5F)
    .register()

mods.integrateddynamics.squeezer.recipeBuilder()
    .input(item('minecraft:diamond'))
    .fluidOutput(fluid('lava') * 10)
    .register()

Removing Recipes

  • Removes all recipes that match the given input:

    groovy
    mods.integrateddynamics.squeezer.removeByInput(ItemStack)
  • Removes all registered recipes:

    groovy
    mods.integrateddynamics.squeezer.removeAll()
Example
groovy
mods.integrateddynamics.squeezer.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.integrateddynamics.squeezer.streamRecipes()

贡献者

页面历史

© 2024 CleanroomMC. All Rights Reserved.