public enum EnumTankLevel extends java.lang.Enum<EnumTankLevel>
| Modifier and Type | Method and Description |
|---|---|
int |
getLevelScaled(int scale) |
static EnumTankLevel |
rateTankLevel(net.minecraftforge.fluids.IFluidTank tank) |
static EnumTankLevel |
rateTankLevel(int scaled) |
static EnumTankLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumTankLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTankLevel EMPTY
public static final EnumTankLevel LOW
public static final EnumTankLevel MEDIUM
public static final EnumTankLevel HIGH
public static final EnumTankLevel MAXIMUM
public static EnumTankLevel[] values()
for (EnumTankLevel c : EnumTankLevel.values()) System.out.println(c);
public static EnumTankLevel 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 int getLevelScaled(int scale)
public static EnumTankLevel rateTankLevel(net.minecraftforge.fluids.IFluidTank tank)
public static EnumTankLevel rateTankLevel(int scaled)