Interface FluidStackSnapshot
- All Superinterfaces:
CopyableDataHolder, DataHolder, DataHolder.Immutable<FluidStackSnapshot>, DataSerializable, SerializableDataHolder, SerializableDataHolder.Immutable<FluidStackSnapshot>, ValueContainer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface DataHolder
DataHolder.Immutable<I>, DataHolder.MutableNested classes/interfaces inherited from interface SerializableDataHolder
SerializableDataHolder.Immutable<I>, SerializableDataHolder.Mutable -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidStackSnapshot.Builderbuilder()Creates a newFluidStackSnapshot.Builderto build a newFluidStackSnapshot.Creates a newFluidStackbased on this snapshot.fluid()Gets theFluidTypeof this snapshot.intvolume()Gets the volume of this snapshot.Methods inherited from interface DataHolder.Immutable
mergeWith, mergeWith, transform, transform, with, with, with, without, without, withoutMethods inherited from interface DataSerializable
contentVersion, toContainer, toViewMethods inherited from interface SerializableDataHolder
validateRawDataMethods inherited from interface SerializableDataHolder.Immutable
copy, withRawDataMethods inherited from interface ValueContainer
get, getDouble, getInt, getKeys, getLong, getOrElse, getOrNull, getValue, getValues, require, requireValue, streamKeys, streamValues, supports, supports
-
Method Details
-
builder
Creates a newFluidStackSnapshot.Builderto build a newFluidStackSnapshot.- Returns:
- The new builder
-
fluid
-
volume
int volume()Gets the volume of this snapshot.Note that the volume is measured in "milli buckets", otherwise read as
mB. The scaling is as follows: 1 bucket = 1000mB, whereas 1 block usually equals 1000mB.- Returns:
- The volume
-
createStack
FluidStack createStack()Creates a newFluidStackbased on this snapshot.- Returns:
- The newly created stack
-