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:
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.groovyinput(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.groovyfluidOutput(FluidStack) fluidOutput(FluidStack...) fluidOutput(Collection<FluidStack>)
boolean
. Sets if the recipe is added to the basic (Squeezer) machine. (Defaulttrue
).groovybasic() 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.groovyoutput(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. (Default10
).groovyduration(int)
boolean
. Sets if the recipe is added to the mechanical (Mechanical Squeezer) machine. (Defaultfalse
).groovymechanical() 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. (returnsnull
ororg.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>
).groovyregister()
Example
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:
groovymods.integrateddynamics.squeezer.removeByInput(ItemStack)
Removes all registered recipes:
groovymods.integrateddynamics.squeezer.removeAll()
Example
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:
groovymods.integrateddynamics.squeezer.streamRecipes()