MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / readClass

Method readClass

src/me/lpk/mapping/loaders/EnigmaLoader.java:160–173  ·  view source on GitHub ↗

Generating mapping for a class. @param parts @return

(String[] parts)

Source from the content-addressed store, hash-verified

158 * @return
159 */
160 private MappedClass readClass(String[] parts) {
161 String original = parts[1];
162 if (original.startsWith("none/")) {
163 original = original.substring("none/".length());
164 }
165 MappedClass mc = null;
166 if (parts.length == 2) {
167 mc = new MappedClass(nodes == null ? fakeNode(original) : nodes.get(original), original);
168 } else if (parts.length == 3) {
169 String newName = parts[2];
170 mc = new MappedClass(nodes == null ? fakeNode(original) : nodes.get(original), newName);
171 }
172 return mc;
173 }
174
175 /**
176 * Add a field to the given class.

Callers 1

readMethod · 0.95

Calls 2

fakeNodeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected