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

Method getGeneralFor

src/main/java/PEP/Activities.java:92–100  ·  view source on GitHub ↗
(int value)

Source from the content-addressed store, hash-verified

90 return false;
91 }
92 private int getGeneralFor(int value) {
93 if (value <= 0 || value > getCount()) return 0;
94 for(int i = 0; i < gen.length ; i++) {
95 int min = gen[i];
96 int max = (i==(gen.length-1))? 100: gen[i + 1];
97 if ((value > min) && (value < max)) return min;
98 }
99 return 0;
100 }
101
102
103 public String[] getActName(int index) {

Callers 1

getActNameMethod · 0.95

Calls 1

getCountMethod · 0.95

Tested by

no test coverage detected