public interface FluidTankData extends MappedData<Direction,List<FluidStackSnapshot>,FluidTankData,ImmutableFluidTankData>
Direction,
the DataHolder may have multiple FluidStacks existing within
itself. Granted, in most cases, the Direction doesn't quite matter as
the tank itself is just a single container containing multiple
FluidStacks, however, in some cases, mod added tanks may have
different tanks for different directions. Note that setting an empty
List of FluidStackSnapshots to a Direction is the
functional equivalent to saying "remove all fluids from that direction".| Modifier and Type | Method and Description |
|---|---|
default Optional<List<FluidStackSnapshot>> |
fluidAtDirection(Direction direction)
|
MapValue<Direction,List<FluidStackSnapshot>> |
fluids()
Gets the
MapValue of the various FluidStackSnapshots
available from the owner. |
asMap, get, getMapKeys, getMapValue, getMapValues, put, putAll, removeasImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerMapValue<Direction,List<FluidStackSnapshot>> fluids()
MapValue of the various FluidStackSnapshots
available from the owner. Note that a fluid tank may have multiple
FluidStacks differing based on Direction.Keys.FLUID_TANK_CONTENTSdefault Optional<List<FluidStackSnapshot>> fluidAtDirection(Direction direction)
direction - The direction