Package org.bukkit
Interface Fluid
- All Superinterfaces:
- Comparable<Fluid>,- Keyed,- OldEnum<Fluid>,- RegistryAware
Represents a fluid type.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Deprecated.static FluidDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static Fluid[]values()Deprecated.useIterable.iterator().Methods inherited from interface org.bukkit.registry.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegistered
- 
Field Details- 
EMPTYNo fluid.
- 
WATERStationary water.
- 
FLOWING_WATERFlowing water.
- 
LAVAStationary lava.
- 
FLOWING_LAVAFlowing lava.
 
- 
- 
Method Details- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
- 
valueOfDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
- name- of the fluid.
- Returns:
- the fluid with the given name.
 
- 
valuesDeprecated.useIterable.iterator().- Returns:
- an array of all known fluids.
 
 
- 
RegistryAware.getKeyOrThrow()instead.