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

Method createFromStrings

src/main/java/ui/keys/UserKey.java:148–156  ·  view source on GitHub ↗
(String id, String name)

Source from the content-addressed store, hash-verified

146 }
147*/
148 public static UserKey createFromStrings(String id, String name) {
149 UserKey u = new UserKey();
150 u.command_id = Integer.parseInt(id);
151 u.modificator = withModificator(name);
152 if (u.modificator)
153 name = name.substring(1);
154 u.key = getKeyCode(name);
155 return u;
156 }
157
158 private static int getKeyCode(String name) {
159 for (int i = 0; i < COUNT_KEY_NAMES; i++)

Callers 1

loadFromFileMethod · 0.95

Calls 2

withModificatorMethod · 0.95
getKeyCodeMethod · 0.95

Tested by

no test coverage detected