Package org.bukkit
Interface Fluid
- All Superinterfaces:
Comparable<Fluid>,Keyed,OldEnum<Fluid>
Represents a fluid type.
-
Field Details
-
EMPTY
No fluid. -
WATER
Stationary water. -
FLOWING_WATER
Flowing water. -
LAVA
Stationary lava. -
FLOWING_LAVA
Flowing lava.
-
-
Method Details
-
valueOf
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
name- of the fluid.- Returns:
- the fluid with the given name.
-
values
Deprecated.useIterable.iterator().- Returns:
- an array of all known fluids.
-
Registry.get(NamespacedKey)instead.