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

Method getSelectedRow

Minecraft-Utils/1.13/src/GuiList.java:494–508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492 }
493
494 @Override
495 public E getSelectedRow() {
496 synchronized (rows) {
497 if (rows.isEmpty())
498 return null;
499 if (selected < 0) {
500 selected = 0;
501 return rows.get(0);
502 }
503 while (selected >= rows.size()) {
504 selected--;
505 }
506 return rows.get(selected);
507 }
508 }
509
510 @Override
511 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