Osmium Compressor (Mekanism)
Description
Converts an input itemstack and 200 of a gasstack into an output itemstack. By default, will use Liquid Osmium as the gasstack.
Identifier
Refer to this via any of the following:
mods.mekanism.osmium_compressor/* Used as page default */
mods.mekanism.osmiumcompressor
mods.mekanism.osmiumCompressor
mods.mekanism.OsmiumCompressorAdding Recipes
Adds recipes in the format
ingredient,gasInput,output:groovymods.mekanism.osmium_compressor.add(IIngredient, GasStack, ItemStack)
Example
mods.mekanism.osmium_compressor.add(item('minecraft:diamond'), gas('hydrogen'), item('minecraft:nether_star'))Recipe Builder
Just like other recipe types, the Osmium Compressor also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.mekanism.osmium_compressor.recipeBuilder()
IngredientList<IIngredient>. Sets the item inputs of the recipe. Requires exactly 1.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)GasStackList. Sets the gas inputs of the recipe. Requires greater than or equal to 0 and less than or equal to 1. (DefaultMekanismFluids.LiquidOsmium).groovygasInput(GasStack) gasInput(GasStack...) gasInput(Collection<GasStack>)ItemStackList. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)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. (returnsnullormekanism.common.recipe.machines.OsmiumCompressorRecipe).groovyregister()
Example
mods.mekanism.osmium_compressor.recipeBuilder()
.input(item('minecraft:diamond'))
.gasInput(gas('hydrogen'))/* Always uses 200 gas */
.output(item('minecraft:nether_star'))
.register()Removing Recipes
Removes all recipes that match the given input:
groovymods.mekanism.osmium_compressor.removeByInput(IIngredient, GasStack)Removes all registered recipes:
groovymods.mekanism.osmium_compressor.removeAll()
Example
mods.mekanism.osmium_compressor.removeByInput(ore('dustRefinedObsidian'), gas('liquidosmium'))
mods.mekanism.osmium_compressor.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.mekanism.osmium_compressor.streamRecipes()
