Radiating Chamber (EssentialCraft 4)
Description
Combines two items together using MRU to obtain a third item. Can optionally require a specific range of MRU balance to execute the recipe.
Identifier
Refer to this via any of the following:
mods.ec4.radiating_chamber
mods.ec4.radiatingchamber
mods.ec4.radiatingChamber
mods.ec4.RadiatingChamber
mods.essentialcraft.radiating_chamber/* Used as page default */
mods.essentialcraft.radiatingchamber
mods.essentialcraft.radiatingChamber
mods.essentialcraft.RadiatingChamber
Adding Recipes
Recipe Builder
Just like other recipe types, the Radiating Chamber also uses a recipe builder.
Don't know what a builder is? Check the builder info page out.
mods.essentialcraft.radiating_chamber.recipeBuilder()
IngredientList<IIngredient>
. Sets the item inputs of the recipe. Requires greater than or equal to 1 and less than or equal to 2.groovyinput(IIngredient) input(IIngredient...) input(Collection<IIngredient>)
ItemStackList
. Sets the item outputs of the recipe. Requires exactly 1.groovyoutput(ItemStack) output(ItemStack...) output(Collection<ItemStack>)
int
. Sets the time needed to execute this recipe, in ticks. Requires greater than or equal to 1. (Default0
).groovytime(int)
float
. Sets the amount of MRU spent by the Chamber each tick. The total MRU can be calculated astime * mruPerTick
. Requires greater than or equal to 1. (Default1.0f
).groovymruPerTick(float)
float
. Sets the minimum balance required for this recipe. Requires greater than or equal to 0.0f and less than or equal to 2.0f. (Default0.0f
).groovylowerBalance(float)
float
. Sets the maximum balance required for this recipe. Requires greater than or equal to 0.0f and less than or equal to 2.0f. (Default2.0f
).groovyupperBalance(float)
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
oressentialcraft.api.RadiatingChamberRecipe
).groovyregister()
Example
mods.essentialcraft.radiating_chamber.recipeBuilder()
.input(item('minecraft:nether_star'), item('minecraft:stone'))
.output(item('minecraft:beacon'))
.time(100)
.mruPerTick(10.0f)
.upperBalance(1.5f)
.lowerBalance(0.25f)
.register()
Removing Recipes
Removes all recipes that match the given output:
groovymods.essentialcraft.radiating_chamber.removeByOutput(IIngredient)
Removes all registered recipes:
groovymods.essentialcraft.radiating_chamber.removeAll()
Example
mods.essentialcraft.radiating_chamber.removeByOutput(item('essentialcraft:genitem', 42))
mods.essentialcraft.radiating_chamber.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.essentialcraft.radiating_chamber.streamRecipes()