Package mcp.mobius.waila.api.neo
Class NeoFluidData
java.lang.Object
mcp.mobius.waila.api.neo.NeoFluidData
NeoForge-specific helper for creating
FluidData
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final FluidData.PlatformTranslator
<net.neoforged.neoforge.fluids.FluidStack> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FluidData.PlatformDependant
<net.neoforged.neoforge.fluids.FluidStack> of()
Creates a fluid data that accepts aFluidStack
static FluidData.PlatformDependant
<net.neoforged.neoforge.fluids.FluidStack> of
(int slotCountHint) Creates a fluid data that accepts aFluidStack
-
Field Details
-
TRANSLATOR
public static final FluidData.PlatformTranslator<net.neoforged.neoforge.fluids.FluidStack> TRANSLATOR
-
-
Constructor Details
-
NeoFluidData
public NeoFluidData()
-
-
Method Details
-
of
Creates a fluid data that accepts aFluidStack
-
of
public static FluidData.PlatformDependant<net.neoforged.neoforge.fluids.FluidStack> of(int slotCountHint) Creates a fluid data that accepts aFluidStack
- Parameters:
slotCountHint
- hint of how many the slots probably are to minimize growing the list more than necessary, the user can callFluidData.add(net.minecraft.world.level.material.Fluid, net.minecraft.core.component.DataComponentPatch, double, double)
more than the specified count
-