Package mcp.mobius.waila.api.data
Class FluidData.PlatformDependant<T>
java.lang.Object
mcp.mobius.waila.api.data.FluidData
mcp.mobius.waila.api.data.FluidData.PlatformDependant<T>
- All Implemented Interfaces:
IData
- Enclosing class:
FluidData
-
Nested Class Summary
Nested classes/interfaces inherited from class mcp.mobius.waila.api.data.FluidData
FluidData.CauldronDescriptor, FluidData.FluidDescription, FluidData.FluidDescriptionContext<T extends Fluid>, FluidData.FluidDescriptor<T extends Fluid>, FluidData.PlatformDependant<T>, FluidData.PlatformTranslator<T>, FluidData.Unit
Nested classes/interfaces inherited from interface mcp.mobius.waila.api.IData
IData.Type<D extends IData>
-
Field Summary
Fields inherited from class mcp.mobius.waila.api.data.FluidData
CONFIG_DISPLAY_UNIT, ID, TYPE
-
Constructor Summary
-
Method Summary
Methods inherited from class mcp.mobius.waila.api.data.FluidData
describeCauldron, describeCauldron, describeFluid, describeFluid, of, of, of, of
-
Constructor Details
-
PlatformDependant
public PlatformDependant()
-
-
Method Details
-
add
Adds a fluid entry.- Parameters:
stack
- the platform-specific objectcapacity
- the maximum capacity of this slot, in the platform's unit
-
add
Adds a fluid entry.- Parameters:
variant
- the platform-specific objectstored
- the stored amount of the fluid, in the platform's unitcapacity
- the maximum capacity of this slot, in the platform's unit
-
add
public FluidData.PlatformDependant<T> add(Fluid fluid, net.minecraft.core.component.DataComponentPatch data, double stored, double capacity) Description copied from class:FluidData
Adds a fluid entry.- Overrides:
add
in classFluidData
- Parameters:
fluid
- the fluid instance, will be normalized as the source fluid if it is aFlowingFluid
data
- the fluid's NBT data, will NOT be modified so it safe to not copy itstored
- the stored amount of the fluid, in the specified unitcapacity
- the maximum capacity of this slot, in the specified unit
-