Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

RunicEnergyType

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.

script.zs
import mods.solarforge.RunicEnergyType;

Enum Constants

RunicEnergyType is an enum. It has 9 enum constants. They are accessible using the code below.

script.zs
<constant:solarforge:energytype:zeta>
<constant:solarforge:energytype:ardo>
<constant:solarforge:energytype:urba>
<constant:solarforge:energytype:kelda>
<constant:solarforge:energytype:fira>
<constant:solarforge:energytype:tera>
<constant:solarforge:energytype:giro>
<constant:solarforge:energytype:ultima>

Methods

Returns: A Usable RunicEnergyType to use in RunicEnergyCost to set up a requirement.
Return Type: string

script.zs
// RunicEnergyType.getCommandString() as string
myRunicEnergyType.getCommandString();

Properties

NameTypeHas GetterHas SetterDescription
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Description