MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / parseInt

Method parseInt

src/main/java/net/minecraft/src/Config.java:1004–1015  ·  view source on GitHub ↗
(String p_parseInt_0_, int p_parseInt_1_)

Source from the content-addressed store, hash-verified

1002 }
1003
1004 public static int parseInt(String p_parseInt_0_, int p_parseInt_1_) {
1005 try {
1006 if (p_parseInt_0_ == null) {
1007 return p_parseInt_1_;
1008 } else {
1009 p_parseInt_0_ = p_parseInt_0_.trim();
1010 return Integer.parseInt(p_parseInt_0_);
1011 }
1012 } catch (NumberFormatException var3) {
1013 return p_parseInt_1_;
1014 }
1015 }
1016
1017 public static float parseFloat(String p_parseFloat_0_, float p_parseFloat_1_) {
1018 try {

Callers 15

detectMatchBlocksMethod · 0.95
parseMinMaxHeightMethod · 0.95
parseScreensMethod · 0.95
parseTimeMethod · 0.95
parseScaleMethod · 0.95
TextureAnimationMethod · 0.95
parseLightMapPacksMethod · 0.95
readColorPropertiesMethod · 0.95
readTextColorsMethod · 0.95
makeTextureAnimationMethod · 0.95
parseItemsMethod · 0.95
parseIntMethod · 0.95

Calls 1

trimMethod · 0.80

Tested by

no test coverage detected