public interface FluidItemData extends DataManipulator<FluidItemData,ImmutableFluidItemData>
FluidStackSnapshot, which may be owned by
various instances of ItemStacks, TileEntity instances,
and possibly Entity instances. Traditionally,
ItemTypes.BUCKETs will not have changeable instances of data without
changing the ItemType. Provided that a TileEntity contains
multiple fluids, it may have optionaly FluidTankData instead of
FluidItemData.| Modifier and Type | Method and Description |
|---|---|
Value<FluidStackSnapshot> |
fluid()
Gets the
FluidStackSnapshot from the owner as a value. |
asImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerValue<FluidStackSnapshot> fluid()
FluidStackSnapshot from the owner as a value.Keys.FLUID_ITEM_STACK