Package org.bukkit
Interface Fluid
Represents a fluid type.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.values()
Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.
-
Field Details
-
EMPTY
No fluid. -
WATER
Stationary water. -
FLOWING_WATER
Flowing water. -
LAVA
Stationary lava. -
FLOWING_LAVA
Flowing lava.
-
-
Method Details
-
valueOf
@NotNull @Deprecated(since="1.21.3", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Fluid valueOf(@NotNull @NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.- Parameters:
name
- of the fluid.- Returns:
- the fluid with the given name.
-
values
@NotNull @Deprecated(since="1.21.3", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Fluid[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator()
.- Returns:
- an array of all known fluids.
-
Registry.get(NamespacedKey)
instead.