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

Method eventOk

src/main/java/History/HistoryReader.java:74–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72*/
73
74 public void eventOk() {
75 if (getItemRef(cursor) == MIPrev) {
76 loadFrom(hl.stepBack());
77 moveCursorEnd();
78 return;
79 } else if (getItemRef(cursor) == MINext) {
80 loadFrom(hl.stepNext());
81 moveCursorHome();
82 return;
83 }
84 super.eventOk();
85 }
86
87 public final void loadFrom(final Vector items) {
88 messages.removeAllElements();

Callers

nothing calls this directly

Calls 6

loadFromMethod · 0.95
stepBackMethod · 0.80
stepNextMethod · 0.80
getItemRefMethod · 0.45
moveCursorEndMethod · 0.45
moveCursorHomeMethod · 0.45

Tested by

no test coverage detected