MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / getCommandID

Method getCommandID

src/main/java/ui/keys/UserKeyExec.java:181–187  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

179 }
180
181 public static int getCommandID(String str) {
182 for (int i = 0; i < cmds.length; i++) {
183 if ((cmds[i] != null) && str.equals(cmds[i]))
184 return i;
185 }
186 return 0;
187 }
188
189 public void afterActions(int keyCode) {
190 if (executed) {

Callers 1

cmdOkMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected