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

Method onMethodSelect

src/main/java/matcher/gui/MatchPaneSrc.java:394–420  ·  view source on GitHub ↗
(MethodInstance method)

Source from the content-addressed store, hash-verified

392 }
393
394 @Override
395 public void onMethodSelect(MethodInstance method) {
396 List<MethodVarInstance> items = varList.getItems();
397 items.clear();
398
399 if (method != null) {
400 for (MethodVarInstance arg : method.getArgs()) {
401 if (gui.isHideUnmappedA() && !arg.hasMappedName()) {
402 continue;
403 }
404
405 items.add(arg);
406 }
407
408 for (MethodVarInstance var : method.getVars()) {
409 if (gui.isHideUnmappedA() && !var.hasMappedName()) {
410 continue;
411 }
412
413 items.add(var);
414 }
415
416 items.sort(getVarComparator());
417 }
418
419 IFwdGuiComponent.super.onMethodSelect(method);
420 }
421
422 @Override
423 public ClassInstance getSelectedClass() {

Callers 1

initMethod · 0.95

Calls 7

getVarComparatorMethod · 0.95
onMethodSelectMethod · 0.95
isHideUnmappedAMethod · 0.80
getVarsMethod · 0.80
hasMappedNameMethod · 0.65
clearMethod · 0.45
getArgsMethod · 0.45

Tested by

no test coverage detected