Refactor everything to WayofTime.bloodmagic.*
This commit is contained in:
parent
46742a73d1
commit
096ba02450
771 changed files with 566 additions and 573 deletions
16
src/main/java/WayofTime/bloodmagic/util/Utils.java
Normal file
16
src/main/java/WayofTime/bloodmagic/util/Utils.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package WayofTime.bloodmagic.util;
|
||||
|
||||
public class Utils {
|
||||
|
||||
public static boolean isInteger(String integer) {
|
||||
try {
|
||||
Integer.parseInt(integer);
|
||||
} catch(NumberFormatException e) {
|
||||
return false;
|
||||
} catch(NullPointerException e) {
|
||||
return false;
|
||||
}
|
||||
// only got here if we didn't return false
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue