Package dev.architectury.utils
Class Amount
java.lang.Object
dev.architectury.utils.Amount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
toInt
(long amount) Converts a long to an int while dropping overflowed values.
-
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
-