public enum Fluid extends Enum<Fluid> implements Keyed
Enum Constant and Description |
---|
FLOWING_LAVA |
FLOWING_WATER |
LAVA |
WATER |
Modifier and Type | Method and Description |
---|---|
@NotNull NamespacedKey |
getKey()
Return the namespaced identifier for this object.
|
static Fluid |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fluid[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fluid WATER
public static final Fluid FLOWING_WATER
public static final Fluid LAVA
public static final Fluid FLOWING_LAVA
public static Fluid[] values()
for (Fluid c : Fluid.values()) System.out.println(c);
public static Fluid valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.