MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / getBooleanProperty

Method getBooleanProperty

src/main/java/Client/Config.java:764–779  ·  view source on GitHub ↗
(final String key, final boolean defvalue)

Source from the content-addressed store, hash-verified

762 return defvalue;
763 }*/
764 public final boolean getBooleanProperty(final String key, final boolean defvalue) {
765 try {
766 if (key.equals("true")) {
767 return true;
768 }
769 if (key.equals("yes")) {
770 return true;
771 }
772 if (key.equals("1")) {
773 return true;
774 }
775 return false;
776 } catch (Exception e) {
777 }
778 return defvalue;
779 }
780}

Callers 1

importDataMethod · 0.80

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected