MCPcopy Create free account
hub / github.com/FabricMC/Matcher / getUid

Method getUid

src/main/java/matcher/type/MemberInstance.java:231–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 }
230
231 @Override
232 public int getUid() {
233 assert hierarchyData != null; // only available for input classes
234
235 if (hierarchyData.uid >= 0) {
236 if (hierarchyData.matchedHierarchy != null && hierarchyData.matchedHierarchy.uid >= 0) {
237 return Math.min(hierarchyData.uid, hierarchyData.matchedHierarchy.uid);
238 } else {
239 return hierarchyData.uid;
240 }
241 } else if (hierarchyData.matchedHierarchy != null) {
242 return hierarchyData.matchedHierarchy.uid;
243 } else {
244 return -1;
245 }
246 }
247
248 public void setUid(int uid) {
249 hierarchyData.matchedHierarchy.uid = uid;

Callers 1

getNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected