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

Method getKeyName

src/main/java/ui/keys/UserKey.java:130–142  ·  view source on GitHub ↗
(int code, boolean modificator)

Source from the content-addressed store, hash-verified

128 }
129
130 public static String getKeyName(int code, boolean modificator) {
131 String prefix = modificator ? "M" : "";
132
133 for (int i = 0; i < COUNT_KEY_NAMES; i++)
134 if (someCodes[i] == code)
135 return prefix + someNames[i];
136
137 if (((code > 64) && (code < 91)) // [A-Z]
138 || ((code > 96) && (code < 123))) // [a-z]
139 return prefix + (char) code;
140
141 return prefix + code;
142 }
143/*
144 public String getKeyName() {
145 return getKeyName(code, modificator);

Callers 4

toStringMethod · 0.95
toStringMethod · 0.95
toLineMethod · 0.95
getKeyCodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected