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

Method getSelectedRow

Minecraft-Utils/1.10/src/GuiList.java:512–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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