public interface FluidItemData extends DataManipulator<FluidItemData,ImmutableFluidItemData>
FluidStackSnapshot
, which may be owned by
various instances of ItemStack
s, TileEntity
instances,
and possibly Entity
instances. Traditionally,
ItemTypes.BUCKET
s 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, transform
getContentVersion, toContainer
Value<FluidStackSnapshot> fluid()
FluidStackSnapshot
from the owner as a value.Keys.FLUID_ITEM_STACK