Class FluidKeys
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKeys
public final class FluidKeys
extends java.lang.Object
The central registry for storing
FluidKey
instances, and mapping Fluid
and Potion
instances
to them.-
Field Summary
Fields Modifier and Type Field Description static FluidKey
EMPTY
static FluidKey
LAVA
static net.minecraft.util.Identifier
MISSING_SPRITE
static BiomeSourcedFluidKey
WATER
-
Method Summary
Modifier and Type Method Description static FluidKey
get(FluidEntry entry)
static FluidKey
get(net.minecraft.fluid.Fluid fluid)
static FluidKey
get(net.minecraft.potion.Potion potion)
static java.util.Set<FluidEntry.FluidFloatingEntry>
getFloatingFluidIds()
static java.util.Set<FluidRegistryEntry<?>>
getRegistryFluidIds()
static void
put(FluidEntry.FluidFloatingEntry entry, FluidKey fluidKey)
static void
put(FluidRegistryEntry<?> entry, FluidKey fluidKey)
static void
put(net.minecraft.fluid.Fluid fluid, FluidKey fluidKey)
static void
put(net.minecraft.potion.Potion potion, FluidKey fluidKey)
static void
remove(net.minecraft.fluid.Fluid fluid)
Deprecated.Because I think fluids are meant to be all statically created?
-
Field Details
-
MISSING_SPRITE
public static final net.minecraft.util.Identifier MISSING_SPRITE -
EMPTY
-
LAVA
-
WATER
-
-
Method Details
-
put
-
put
-
put
-
put
-
remove
@Deprecated public static void remove(net.minecraft.fluid.Fluid fluid)Deprecated.Because I think fluids are meant to be all statically created?Removes a fluid entry from this map. -
get
- Returns:
- Null if the passed fluid is null, or a non-null
FluidKey
.
-
get
-
get
-
getRegistryFluidIds
- Returns:
- A copy of all the
FluidRegistryEntry
s registered.
-
getFloatingFluidIds
- Returns:
- A copy of all the
FluidEntry.FluidFloatingEntry
s registered.
-