Class Amount

java.lang.Object
dev.architectury.utils.Amount

public class Amount extends Object
  • Constructor Details

    • Amount

      public Amount()
  • Method Details

    • toInt

      public static int toInt(long amount)
      Converts a long to an int while dropping overflowed values.
      Parameters:
      amount - the long to convert
      Returns:
      the int value