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
Copy
import mods.mekanism.api.chemical.Chemical;

A Chemical is the abstract representation of a mekanism chemical substance.

Implemented Interfaces

Link to implemented-interfaces

Chemical implements the following interfaces. That means all methods defined in these interfaces are also available in Chemical

Name: isEmptyType

Gets whether this chemical is the empty instance.

Returns: true if the chemical is the empty instance, false otherwise.

Return Type: boolean

ZenScript
Copy
// Chemical.isEmptyType() as boolean

myChemical.isEmptyType();

Name: isHidden

Gets whether this chemical is hidden.

Returns: true if the chemical is hidden, false otherwise.

Return Type: boolean

ZenScript
Copy
// Chemical.isHidden() as boolean

myChemical.isHidden();

Name: getTags

Gets the tags that this chemical is a part of.

Returns: All the tags this chemical is a part of.

Return Type: Set<MCResourceLocation>

ZenScript
Copy
// Chemical.getTags() as Set<MCResourceLocation>

myChemical.getTags();
NameTypeHas GetterHas SetterDescription
Name
empty
Type
boolean
Has Getter
true
Has Setter
false
Description
Whether this chemical is the empty type.
Name
hidden
Type
boolean
Has Getter
true
Has Setter
false
Description
Whether this chemical is hidden.
Name
tags
Type
Set<MCResourceLocation>
Has Getter
true
Has Setter
false
Description
Gets the tags that this chemical is a part of.