Interface FluidStack.Builder

    • Method Detail

      • fluid

        default FluidStack.Builder fluid​(java.util.function.Supplier<? extends FluidType> fluidType)
        Sets the FluidType to use to build the FluidStack.
        Parameters:
        fluidType - The fluid type
        Returns:
        This builder, for chaining
      • volume

        FluidStack.Builder volume​(int volume)
        Sets the desired volume of the FluidStack.

        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.

        Parameters:
        volume - The volume
        Returns:
        This builder, for chaining
      • from

        FluidStack.Builder from​(FluidStackSnapshot fluidStackSnapshot)
        Resets and fills this builder with all the information from the provided FluidStackSnapshot.
        Parameters:
        fluidStackSnapshot - The fluid stack snapshot to copy data from
        Returns:
        This builder, for chaining