Interface FluidStackSnapshot

All Superinterfaces:
CopyableDataHolder, DataHolder, DataHolder.Immutable<FluidStackSnapshot>, DataSerializable, SerializableDataHolder, SerializableDataHolder.Immutable<FluidStackSnapshot>, ValueContainer

public interface FluidStackSnapshot extends SerializableDataHolder.Immutable<FluidStackSnapshot>
  • Method Details

    • builder

      static FluidStackSnapshot.Builder builder()
      Creates a new FluidStackSnapshot.Builder to build a new FluidStackSnapshot.
      Returns:
      The new builder
    • fluid

      FluidType fluid()
      Gets the FluidType of this snapshot.
      Returns:
      The fluid type
    • 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 new FluidStack based on this snapshot.
      Returns:
      The newly created stack