Infusion (Mekanism)
Description
Add new infusion types and itemstacks to those types.
Danger
To register a texture to be used by an Infusion Type, you have to add the following event listener to a PreInit file. event_manager.listen { TextureStitchEvent.Pre event -> event.getMap().registerSprite(resource('placeholdername:blocks/example')) }, where 'assets/placeholdername/textures/blocks/example.png' is the location of the desired texture.
Identifier
The identifier mods.mekanism.infusion will be used as the default on this page.
All Identifiers
Any of these can be used to refer to this compat:
mods.mekanism.infusion/* Used as page default */
mods.mekanism.InfusionAdding Entries
Creates an Infusion Type with the given name and texture:
groovymods.mekanism.infusion.addType(String, String)Creates an Infusion Type with the given name and texture:
groovymods.mekanism.infusion.addType(String, ResourceLocation)Adds IIngredients to the provided Infusion Type:
groovymods.mekanism.infusion.add(String, int, IIngredient...)Adds IIngredients to the provided Infusion Type:
groovymods.mekanism.infusion.add(InfuseType, int, ItemStack)Adds IIngredients to the provided Infusion Type:
groovymods.mekanism.infusion.add(InfuseType, int, IIngredient...)Adds IIngredients to the provided Infusion Type:
groovymods.mekanism.infusion.add(String, int, Collection<IIngredient>)Adds IIngredients to the provided Infusion Type:
groovymods.mekanism.infusion.add(InfuseType, int, Collection<IIngredient>)
Example
mods.mekanism.infusion.addType('groovy_example', resource('groovyscriptdev:blocks/mekanism_infusion_texture'))
mods.mekanism.infusion.add('groovy_example', 10, item('minecraft:ice'))
mods.mekanism.infusion.add('groovy_example', 20, item('minecraft:packed_ice'))
mods.mekanism.infusion.add(infusionType('diamond'), 100, item('minecraft:clay'))
mods.mekanism.infusion.add(infusionType('carbon'), 100, item('minecraft:gold_ingot'))Removing Entries
Removes IIngredients from any Infusion Type:
groovymods.mekanism.infusion.remove(IIngredient)Removes IIngredients from any Infusion Type:
groovymods.mekanism.infusion.remove(IIngredient...)Removes IIngredients from any Infusion Type:
groovymods.mekanism.infusion.remove(Collection<IIngredient>)Removes an Infusion Type and all corresponding items:
groovymods.mekanism.infusion.removeType(String)Removes any Infusion Type that matches the given type:
groovymods.mekanism.infusion.removeByType(String)Removes any Infusion Type that matches the given type:
groovymods.mekanism.infusion.removeByType(InfuseType)Removes all Infusion Types:
groovymods.mekanism.infusion.removeAll()
Example
mods.mekanism.infusion.remove(ore('dustDiamond'))
mods.mekanism.infusion.removeByType(infusionType('carbon'))
mods.mekanism.infusion.removeByType(infusionType('diamond'))
mods.mekanism.infusion.removeAll()