MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / run

Method run

src/main/java/ui/VirtualCanvas.java:516–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514 }
515
516 public void run() {
517
518
519 if (scroll == 0) {
520 if (scroll()) {
521 if (attachedList != null) {
522 attachedList.redraw();
523 }
524 } else {
525 if (timer != null) {
526 timer.cancel();
527 timer = null;
528 instance = null;
529 }
530 }
531 } else {
532 scroll--;
533 }
534 /* TODO: remove
535 if (VirtualList.reconnectRedraw) {
536 VirtualList.reconnectRedraw = false;
537 try {
538 attachedList.redraw();
539 } catch (Exception e) {
540 instance = null;
541 }
542 }
543 */
544
545 }
546
547 public boolean scroll() {
548 synchronized (this) {

Callers

nothing calls this directly

Calls 3

scrollMethod · 0.95
redrawMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected