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

Method getSelectedRow

Minecraft-Utils/1.8/src/GuiList.java:527–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525 }
526
527 @Override
528 public E getSelectedRow() {
529 synchronized (rows) {
530 if (rows.isEmpty())
531 return null;
532 if (selected < 0) {
533 selected = 0;
534 return rows.get(0);
535 }
536 while (selected >= rows.size()) {
537 selected--;
538 }
539 return rows.get(selected);
540 }
541 }
542
543 @Override
544 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