Package org.bukkit
Interface Fluid
- All Superinterfaces:
Comparable<Fluid>
,Keyed
,OldEnum<Fluid>
,RegistryAware
Represents a fluid type.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Deprecated.static Fluid
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static Fluid[]
values()
Deprecated.useIterable.iterator()
.Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
Field Details
-
EMPTY
No fluid. -
WATER
Stationary water. -
FLOWING_WATER
Flowing water. -
LAVA
Stationary lava. -
FLOWING_LAVA
Flowing lava.
-
-
Method Details
-
getKey
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()
instead.Return the namespaced identifier for this object. -
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.
-
RegistryAware.getKeyOrThrow()
instead.