Class FluidRegistries

java.lang.Object
net.minestom.server.registry.FluidRegistries

public final class FluidRegistries extends Object
AUTOGENERATED
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HashMap<net.minestom.server.utils.NamespaceID,Fluid>
    Deprecated.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull Fluid
    Returns the corresponding Fluid matching the given id.
    static @NotNull Fluid
    getFluid(net.kyori.adventure.key.Key key)
    Returns the corresponding Fluid matching the given key.
    static @NotNull Fluid
    getFluid(net.minestom.server.utils.NamespaceID id)
    Returns the corresponding Fluid matching the given id.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fluids

      @Deprecated public static final HashMap<net.minestom.server.utils.NamespaceID,Fluid> fluids
      Deprecated.
      Should only be used for internal code, please use the get* methods.
  • Constructor Details

    • FluidRegistries

      public FluidRegistries()
  • Method Details

    • getFluid

      @NotNull public static @NotNull Fluid getFluid(String id)
      Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match.
    • getFluid

      @NotNull public static @NotNull Fluid getFluid(net.minestom.server.utils.NamespaceID id)
      Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match.
    • getFluid

      @NotNull public static @NotNull Fluid getFluid(net.kyori.adventure.key.Key key)
      Returns the corresponding Fluid matching the given key. Returns 'EMPTY' if none match.