Class FluidConstants

java.lang.Object
earth.terrarium.botarium.common.fluid.FluidConstants

public class FluidConstants extends Object
  • Constructor Details

    • FluidConstants

      public FluidConstants()
  • Method Details

    • fromMillibuckets

      @ImplementsBaseElement public static long fromMillibuckets(long millibuckets)
      Converts the given amount of millibuckets to the platform-specific amount of fluid.
      Parameters:
      millibuckets - The amount of millibuckets to convert.
      Returns:
      The converted value as a long.
    • toMillibuckets

      @ImplementsBaseElement public static long toMillibuckets(long amount)
      Converts the given amount of platform-specific amount of fluid to millibuckets.
      Parameters:
      amount - The amount of platform specific liquid to convert.
      Returns:
      The converted millibuckets as a long.
    • getBucketAmount

      @ImplementedByExtension public static long getBucketAmount()
      Returns:
      The amount of fluid a bucket is for the platform.
    • getBottleAmount

      @ImplementedByExtension public static long getBottleAmount()
      Returns:
      The amount of fluid a bottle is for the platform.
    • getBlockAmount

      @ImplementedByExtension public static long getBlockAmount()
      Returns:
      The amount of fluid a block is for the platform.
    • getIngotAmount

      @ImplementedByExtension public static long getIngotAmount()
      Returns:
      The amount of fluid an ingot is for the platform.
    • getNuggetAmount

      @ImplementedByExtension public static long getNuggetAmount()
      Returns:
      The amount of fluid a nugget is for the platform.