public interface FluidTankData extends MappedData<Direction,List<FluidStackSnapshot>,FluidTankData,ImmutableFluidTankData>
Direction
,
the DataHolder
may have multiple FluidStack
s existing within
itself. Granted, in most cases, the Direction
doesn't quite matter as
the tank itself is just a single container containing multiple
FluidStack
s, however, in some cases, mod added tanks may have
different tanks for different directions. Note that setting an empty
List
of FluidStackSnapshot
s 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 FluidStackSnapshot s
available from the owner. |
asMap, get, getMapKeys, getMapValue, getMapValues, put, putAll, remove
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
MapValue<Direction,List<FluidStackSnapshot>> fluids()
MapValue
of the various FluidStackSnapshot
s
available from the owner. Note that a fluid tank may have multiple
FluidStack
s differing based on Direction
.Keys.FLUID_TANK_CONTENTS
default Optional<List<FluidStackSnapshot>> fluidAtDirection(Direction direction)
direction
- The direction