Package org.bukkit.util
Class NumberConversions
- java.lang.Object
-
- org.bukkit.util.NumberConversions
-
public final class NumberConversions extends Object
Utils for casting number types to other number types
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intceil(double num)static voidcheckFinite(double d, @NotNull String message)static voidcheckFinite(float d, @NotNull String message)static intfloor(double num)static booleanisFinite(double d)static booleanisFinite(float f)static intround(double num)static doublesquare(double num)static bytetoByte(@Nullable Object object)static doubletoDouble(@Nullable Object object)static floattoFloat(@Nullable Object object)static inttoInt(@Nullable Object object)static longtoLong(@Nullable Object object)static shorttoShort(@Nullable Object object)
-