Class FabricFluidData
java.lang.Object
mcp.mobius.waila.api.fabric.FabricFluidData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FluidData.PlatformTranslator<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidData.PlatformDependant<net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant> of()Creates a fluid data that accepts aFluidVariantstatic 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(Fluid, DataComponentPatch, double, double)more than the specified count
-