Package mcp.mobius.waila.api.data
Interface FluidData.PlatformTranslator<T>
- Enclosing class:
FluidData
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the amount of the platform object.net.minecraft.core.component.DataComponentPatch
Returns the nbt of the platform object.Returns the fluid of the platform object.unit()
Returns the unit of this platform.
-
Method Details
-
unit
FluidData.Unit unit()Returns the unit of this platform. -
fluid
Returns the fluid of the platform object. -
data
Returns the nbt of the platform object. -
amount
Returns the amount of the platform object.- Throws:
UnsupportedOperationException
- if the platform doesn't store amount information on this type, forcing user to useFluidData.PlatformDependant.add(Object, double, double)
-