AlloyBuilder
Link to alloybuilder
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport mods.tfc.AlloyBuilder;
Methods
Link to methods
Name: Add
add a metal to the alloy
ZenScript Copy// AlloyBuilder.Add(metal as Metal, min as double, max as double)
myAlloyBuilder.Add(<metal:tfc:copper>, 0.88, 0.92);
Parameter | Type | Description |
---|---|---|
Parameter metal | Type Metal | Description metal |
Parameter min | Type double | Description min amount |
Parameter max | Type double | Description max amount |
Name: Add
add a metal to the alloy
ZenScript Copy// AlloyBuilder.Add(metalName as string, min as double, max as double)
myAlloyBuilder.Add("tfc:copper", 0.88, 0.92);
Parameter | Type | Description |
---|---|---|
Parameter metalName | Type string | Description name of the metal |
Parameter min | Type double | Description min amount |
Parameter max | Type double | Description max amount |
Name: Output
Add a metal as output
ZenScript Copy// AlloyBuilder.Output(metal as Metal)
myAlloyBuilder.Output(<metal:tfc:bronze>);
Parameter | Type | Description |
---|---|---|
Parameter metal | Type Metal | Description metal |
Name: Output
Add a metal as output
ZenScript Copy// AlloyBuilder.Output(name as string)
myAlloyBuilder.Output("bronze");
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description name of the metal |