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

Method setSortKey

src/main/java/matcher/gui/Gui.java:342–351  ·  view source on GitHub ↗
(SortKey sortKey)

Source from the content-addressed store, hash-verified

340 }
341
342 public void setSortKey(SortKey sortKey) {
343 if (sortKey == null) throw new NullPointerException("null sort key");
344 if (this.sortKey == sortKey) return;
345
346 this.sortKey = sortKey;
347
348 for (IGuiComponent c : components) {
349 c.onViewChange(ViewChangeCause.SORTING_CHANGED);
350 }
351 }
352
353 public boolean isSortMatchesAlphabetically() {
354 return sortMatchesAlphabetically;

Callers 1

initMethod · 0.80

Calls 1

onViewChangeMethod · 0.65

Tested by

no test coverage detected