Class FluidTagKeys

java.lang.Object
io.papermc.paper.registry.keys.tags.FluidTagKeys

@NullMarked @GeneratedFrom("1.21.8") public final class FluidTagKeys extends Object
Vanilla tag keys for RegistryKey.FLUID.
API Note:
The fields provided here are a direct representation of what is available from the vanilla game source. They may be changed (including removals) on any Minecraft version bump, so cross-version compatibility is not provided on the same level as it is on most of the other API.
  • Field Details

    • LAVA

      public static final TagKey<Fluid> LAVA
      #minecraft:lava
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • WATER

      public static final TagKey<Fluid> WATER
      #minecraft:water
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
  • Method Details

    • create

      public static TagKey<Fluid> create(Key key)
      Creates a tag key for Fluid in the registry minecraft:fluid.
      Parameters:
      key - the tag key's key
      Returns:
      a new tag key