MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getSelectedRow

Method getSelectedRow

Minecraft-Utils/1.12/src/GuiList.java:514–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

512 }
513
514 @Override
515 public E getSelectedRow() {
516 synchronized (rows) {
517 if (rows.isEmpty())
518 return null;
519 if (selected < 0) {
520 selected = 0;
521 return rows.get(0);
522 }
523 while (selected >= rows.size()) {
524 selected--;
525 }
526 return rows.get(selected);
527 }
528 }
529
530 @Override
531 public int getWidth() {

Callers 1

drawScreenMethod · 0.95

Calls 3

isEmptyMethod · 0.80
sizeMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected