Class FluidKeys
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKeys
The central registry for storing
FluidKey
instances, and mapping Fluid
and Potion
instances
to them.-
Field Summary
Modifier and TypeFieldDescriptionstatic FluidKey
static FluidKey
static net.minecraft.util.Identifier
static BiomeSourcedFluidKey
-
Method Summary
Modifier and TypeMethodDescriptionstatic FluidKey
get(FluidEntry entry)
static FluidKey
get(net.minecraft.fluid.Fluid fluid)
static FluidKey
get(net.minecraft.potion.Potion potion)
static Set<FluidEntry.FluidFloatingEntry>
static Set<FluidRegistryEntry<?>>
static void
put(FluidEntry.FluidFloatingEntry entry, FluidKey fluidKey)
static void
put(FluidRegistryEntry<?> entry, FluidKey fluidKey)
static void
static void
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.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.
-