MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / keyDwn

Method keyDwn

src/main/java/ui/VirtualList.java:945–967  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

943 }
944
945 public void keyDwn() {
946 if (getItemCount()==0)
947 return;
948 if (cursor==(getItemCount()-1)) {
949 if (wrapping) {
950 moveCursorHome();
951 } else {
952 itemPageDown();
953 }
954 setRotator();
955 return;
956 }
957 if (itemPageDown()) {
958 return;
959 }
960 stickyWindow=true;
961 if (getItemRef(cursor+1).isSelectable()) {
962 cursor++;
963 } else {
964 cursor=getNextSelectableRef(cursor);
965 }
966 setRotator();
967 }
968
969 public int getPrevSelectableRef(int curRef) {
970 if (getItemCount() == 0) {

Callers 3

doKeyActionMethod · 0.95
doUserKeyActionMethod · 0.95
menuActionMethod · 0.45

Calls 7

getItemCountMethod · 0.95
moveCursorHomeMethod · 0.95
itemPageDownMethod · 0.95
setRotatorMethod · 0.95
getItemRefMethod · 0.95
getNextSelectableRefMethod · 0.95
isSelectableMethod · 0.65

Tested by

no test coverage detected