MCPcopy Create free account
hub / github.com/e2wugui/zeze / Start

Method Start

ZezeJava/ZezexJava/server/ModuleEquip.hot.java:72–93  ·  view source on GitHub ↗
(App app)

Source from the content-addressed store, hash-verified

70 }
71
72 public void Start(App app) {
73 App.Zeze.getHotManager().throwIfMatch("start");
74
75 _tequip.getChangeListenerMap().addListener(new ItemsChangeListener());
76 App.Zeze.newProcedure(() -> {
77 var timer = App.Zeze.getTimer();
78 if (!isHotUpgrade()) {
79 var rand = Zeze.Util.Random.getInstance();
80 timer.scheduleNamed(timerNamed,
81 rand.nextLong(3000) + 1000,
82 rand.nextLong(3000) + 1000,
83 HotTimer.class, new BEquipExtra(0, 2, 0));
84
85 timerHot = timer.schedule(
86 rand.nextLong(3000) + 1000,
87 rand.nextLong(3000) + 1000,
88 HotTimer.class, new BEquipExtra(0, 1, 0));
89 resetCollections();
90 }
91 return 0;
92 }, "register timers").call();
93 }
94
95 public void Stop(App app) {
96 App.Zeze.getHotManager().throwIfMatch("stop");

Callers 1

startMethod · 0.95

Calls 13

isHotUpgradeMethod · 0.95
resetCollectionsMethod · 0.95
throwIfMatchMethod · 0.80
addListenerMethod · 0.80
getChangeListenerMapMethod · 0.80
scheduleNamedMethod · 0.80
callMethod · 0.65
scheduleMethod · 0.65
getHotManagerMethod · 0.45
newProcedureMethod · 0.45
getTimerMethod · 0.45
getInstanceMethod · 0.45

Tested by

no test coverage detected