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

Method startRotate

src/main/java/ui/VirtualCanvas.java:495–514  ·  view source on GitHub ↗
(int max, VirtualList list)

Source from the content-addressed store, hash-verified

493 }
494
495 public static void startRotate(int max, VirtualList list) {
496
497 if (instance == null) {
498 instance = new TimerTaskRotate();
499 }
500
501 if (max < 0) {
502 //instance.destroyTask();
503 list.offset = 0;
504 return;
505 }
506
507 synchronized (instance) {
508 list.offset = 0;
509 instance.scrollLen = max;
510 instance.scrollline = (max > 0);
511 instance.attachedList = list;
512 instance.scroll = 1;
513 }
514 }
515
516 public void run() {
517

Callers 2

setRotatorMethod · 0.95
showNotifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected