Package net.minestom.server.registry
Class FluidRegistries
java.lang.Object
net.minestom.server.registry.FluidRegistries
AUTOGENERATED
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @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
(NamespaceID id) Returns the corresponding Fluid matching the given id.
-
Field Details
-
fluids
Deprecated.Should only be used for internal code, please use the get* methods.
-
-
Constructor Details
-
FluidRegistries
public FluidRegistries()
-
-
Method Details
-
getFluid
Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match. -
getFluid
Returns the corresponding Fluid matching the given id. Returns 'EMPTY' if none match. -
getFluid
Returns the corresponding Fluid matching the given key. Returns 'EMPTY' if none match.
-