Metal
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.
Static Methods
Get all the registered metals
Returns: an array containing all registered metals
Return Type: Metal[]
get the metal from ingot
Returns: metal found
Return Type: Metal
Parameter | Type | Description |
---|---|---|
Parameter stack | Type IItemStack | Description ingot |
Methods
Return Type: string
get a fluidstack from a metal
Returns:
Return Type: IFluidStack
Parameter | Type | Description |
---|---|---|
Parameter amount | Type int | Description amount |
return the item corresponding to that metal part
Returns:
Return Type: IItemStack
Parameter | Type | Description |
---|---|---|
Parameter partName | Type string | Description metal part name |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name commandString | Type string | Has Getter true | Has Setter false |