ChemicalBuilder<CHEMICAL : Chemical
Link to chemicalbuilderchemical--chemicalchemical-builder-attribute--chemicalattribute-crt_builder--chemicalbuilderchemicalbuilderattributecrt_builder
This class was added by a mod with mod-id mekanism
. So you need to have this mod installed if you
want to use this feature.
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.mekanism.content.builder.ChemicalBuilder;
Methods
Link to methods
Name: build
Create a chemical from this builder with the given name.
Return Type: void
ZenScript CopyChemicalBuilder.build(name as string) as void
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description Registry name for the chemical. |
Name: color
Sets the tint to apply to this chemical when rendering.
Return Type: CRT_BUILDER
ZenScript CopyChemicalBuilder.color(color as int)
Parameter | Type | Description |
---|---|---|
Parameter color | Type int | Description Color in RRGGBB format |
Name: colorRepresentation
Sets the color representation to apply to this chemical when used for things like durability bars. Mostly for use in combination with custom textures that are not tinted.
Return Type: CRT_BUILDER
ZenScript CopyChemicalBuilder.colorRepresentation(color as int)
Parameter | Type | Description |
---|---|---|
Parameter color | Type int | Description Color in RRGGBB format |
Marks that this chemical will be hidden in JEI, and not included in the preset of filled chemical tanks.
Return Type: CRT_BUILDER
ZenScript Copy// ChemicalBuilder.hidden()
myChemicalBuilder.hidden();
Name: with
Adds an attribute to the set of attributes this chemical has.
Return Type: CRT_BUILDER
ZenScript CopyChemicalBuilder.with(attribute as ATTRIBUTE)
Parameter | Type | Description |
---|---|---|
Parameter attribute | Type ATTRIBUTE | Description Attribute to add. |