Rewrite is Go!
Just moving over all my changes from my fork
This commit is contained in:
parent
8bdd1f8b8f
commit
e3d4afa123
973 changed files with 3313 additions and 82171 deletions
16
src/main/java/WayofTime/alchemicalWizardry/util/Utils.java
Normal file
16
src/main/java/WayofTime/alchemicalWizardry/util/Utils.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package WayofTime.alchemicalWizardry.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