Enum Class FluidType

java.lang.Object
java.lang.Enum<FluidType>
dev.wyck.wrapper.worldgen.FluidType
All Implemented Interfaces:
Serializable, Comparable<FluidType>, Constable

@NullMarked @AsOf("2.3.0") public enum FluidType extends Enum<FluidType>
The vanilla fluids a block predicate can match against.
Since:
2.3.0
  • Enum Constant Details

    • EMPTY

      public static final FluidType EMPTY
    • WATER

      public static final FluidType WATER
    • FLOWING_WATER

      public static final FluidType FLOWING_WATER
    • LAVA

      public static final FluidType LAVA
    • FLOWING_LAVA

      public static final FluidType FLOWING_LAVA
  • Method Details

    • values

      public static FluidType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FluidType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • key

      @AsOf("2.3.0") public String key()
      The vanilla registry path for this fluid (e.g. "water", "lava").
      Returns:
      the registry path for this fluid
      Since:
      2.3.0