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

Method parseFloat

src/main/java/net/optifine/CustomSkyLayer.java:174–194  ·  view source on GitHub ↗
(String str, float defVal)

Source from the content-addressed store, hash-verified

172 }
173
174 private float parseFloat(String str, float defVal)
175 {
176 if (str == null)
177 {
178 return defVal;
179 }
180 else
181 {
182 float f = Config.parseFloat(str, Float.MIN_VALUE);
183
184 if (f == Float.MIN_VALUE)
185 {
186 Config.warn("Invalid value: " + str);
187 return defVal;
188 }
189 else
190 {
191 return f;
192 }
193 }
194 }
195
196 private float[] parseAxis(String str, float[] defVal)
197 {

Callers 1

CustomSkyLayerMethod · 0.95

Calls 2

parseFloatMethod · 0.95
warnMethod · 0.95

Tested by

no test coverage detected