MixRecipeBuilder

Link to mixrecipebuilder

A MixRecipeBuilder is used to build and add High Oven's Mix Recipe to the game.

Better be safe than sorry and import the package

ZenScript
Copy
import mods.tcomplement.highoven.MixRecipeBuilder;

The mods.tcomplement.highoven.HighOven handler can give you a MixRecipeBuilder

ZenScript
Copy
// HighOven.newMixRecipe(ILiquidStack output, ILiquidStack input, int temp);
var builder = HighOven.newMixRecipe(<liquid:steel> * 72, <liquid:iron> * 144, 1350);
  • output is the fluid and quantity to produce
  • input is the fluid and quantity to consume
  • temp is the minimal temperature of the high oven for the recipe to work, in Kelvin
AttributeZenGetterZenSetter类型Info
Attribute
output(输出)
ZenGetter
output(输出)
ZenSetter
:heavy_check_mark:
类型
ILiquidStack
Info
the output produced by the MixRecipe
Attribute
input(输入)
ZenGetter
input(输入)
ZenSetter
:heavy_check_mark:
类型
ILiquidStack
Info
the input of the MixRecipe
Attribute
temperature
ZenGetter
temp
ZenSetter
:heavy_check_mark:
类型
int
Info
the minimum temperature, in Kelvin
Attribute
oxidizers
ZenGetter
oxidizers
ZenSetter
:x:
类型
List<IIngredient>
Info
the valid oxidizers for the recipe at the time the attribute is accessed
Attribute
reducers
ZenGetter
reducers
ZenSetter
:x:
类型
List<IIngredient>
Info
the valid reducers for the recipe at the time the attribute is accessed
Attribute
purifiers
ZenGetter
purifiers
ZenSetter
:x:
类型
List<IIngredient>
Info
the valid purifiers for the recipe at the time the attribute is accessed
方法Return typeInfo
方法
getOxidizerChance(IIngredient oxidizer)
Return type
int
Info
The chance in percent that the oxidizer is consumed, or -1 if the oxidizer is not valid
方法
getReducerChance(IIngredient reducer)
Return type
int
Info
The chance in percent that the reducer is consumed, or -1 if the reducer is not valid
方法
getOxidizerChance(IIngredient purifier)
Return type
int
Info
The chance in percent that the purifier is consumed, or -1 if the oxidizer is not valid
方法
addOxidizer(IIngredient oxidizer, int consumeChance)
Return type
MixRecipeBuilder
Info
Add the oxidizer with the given consume chance (in percent)
方法
addReducer(IIngredient reducer, int consumeChance)
Return type
MixRecipeBuilder
Info
Add the reducer with the given consume chance (in percent)
方法
addPurifier(IIngredient purifier, int consumeChance)
Return type
MixRecipeBuilder
Info
Add the purifier with the given consume chance (in percent)
方法
removeOxidizer(IIngredient oxidizer)
Return type
MixRecipeBuilder
Info
Remove the oxidizer if it had been added
方法
removeReducer(IIngredient reducer)
Return type
MixRecipeBuilder
Info
Remove the reducer if it had been added
方法
removePurifier(IIngredient purifier)
Return type
MixRecipeBuilder
Info
Remove the purifier if it had been added
方法
removeAllOxidizer()
Return type
MixRecipeBuilder
Info
Remove all oxidizers
方法
removeAllReducer()
Return type
MixRecipeBuilder
Info
Remove all reducers
方法
removeAllPurifier()
Return type
MixRecipeBuilder
Info
Remove all purifiers
方法
register()
Return type
Info
Add a new MixRecipe with the data currently added in the MixRecipeBuilder

All methods that return a MixRecipeBuilder return the same instance they were called on, allowing method chaining.

The additives supports all kind of IIngredient: IOreDictEntry, IItemStack and their transformations, liquid containers etc.