Package mcp.mobius.waila.api.fabric
Class FabricFluidData
java.lang.Object
mcp.mobius.waila.api.fabric.FabricFluidData
Fabric-specific helper for creating
FluidData
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final FluidData.PlatformTranslator
<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FluidData.PlatformDependant
<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> of()
Creates a fluid data that accepts aFluidVariant
static FluidData.PlatformDependant
<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> of
(int slotCountHint) Creates a fluid data that accepts aFluidVariant
-
Field Details
-
TRANSLATOR
public static final FluidData.PlatformTranslator<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> TRANSLATOR
-
-
Constructor Details
-
FabricFluidData
public FabricFluidData()
-
-
Method Details
-
of
public static FluidData.PlatformDependant<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> of()Creates a fluid data that accepts aFluidVariant
-
of
public static FluidData.PlatformDependant<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> of(int slotCountHint) Creates a fluid data that accepts aFluidVariant
- 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
-