Class CoreUtils
- java.lang.Object
-
- com.playernguyen.playernguyencore.utils.CoreUtils
-
public class CoreUtils extends java.lang.Object
The utility class for Bukkit/SpigotMC/Paper plugins.
-
-
Constructor Summary
Constructors Constructor Description CoreUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isFloatFromString(java.lang.String string)
Check whether theString
can convert toFloat
static boolean
isIntFromString(java.lang.String string)
Check whether theString
value can convert toInteger
-
-
-
Method Detail
-
isIntFromString
public static boolean isIntFromString(java.lang.String string)
Check whether theString
value can convert toInteger
- Parameters:
string
- String value to check- Returns:
- true if the string value is an integer
or false
-
isFloatFromString
public static boolean isFloatFromString(java.lang.String string)
Check whether theString
can convert toFloat
- Parameters:
string
- String value to check- Returns:
- true if the string value is an float
or false
-
-