Package org.bukkit

Interface Fluid

All Superinterfaces:
Comparable<Fluid>, Keyed, Keyed, OldEnum<Fluid>

public interface Fluid extends OldEnum<Fluid>, Keyed
Represents a fluid type.
  • Field Details

    • EMPTY

      static final Fluid EMPTY
    • FLOWING_LAVA

      static final Fluid FLOWING_LAVA
    • FLOWING_WATER

      static final Fluid FLOWING_WATER
    • LAVA

      static final Fluid LAVA
    • WATER

      static final Fluid WATER
  • 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, use Registry.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.
      Returns:
      an array of all known fluids.