public enum PowerUnits extends java.lang.Enum<PowerUnits>
| Modifier and Type | Field and Description |
|---|---|
double |
conversionRatio
please do not edit this value, it is set when AE loads its config files.
|
java.lang.String |
unlocalizedName
unlocalized name for the power unit.
|
| Modifier and Type | Method and Description |
|---|---|
double |
convertTo(PowerUnits target,
double value)
do power conversion using AE's conversion rates.
|
static PowerUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PowerUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PowerUnits AE
public static final PowerUnits EU
public static final PowerUnits RF
public final java.lang.String unlocalizedName
public double conversionRatio
public static PowerUnits[] values()
for (PowerUnits c : PowerUnits.values()) System.out.println(c);
public static PowerUnits valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic double convertTo(PowerUnits target, double value)
target - target power unitvalue - value