Class EffectTracker
java.lang.Object
privbot.effects.EffectTracker
Per-plugin effect bookkeeping. Events and reads are bounded memory operations; there are no
client reads, global subscriptions, threads, disk writes, or gameplay actions here.
Retain one tracker across worker Stop/Start and disconnects so captured pre-pot evidence is not lost. Time continues to pass while paused. Construct a fresh tracker for a new plugin lifetime. Currently only Elorin has an audited message policy; other profiles report UNKNOWN for the built-in effects and do not consume Elorin-looking chat.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSource-compatible live local timer; restarting preserves the object's identity. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()Clears local bookkeeping without asserting that any in-game effect ended.voidclearTimer(String name) Live local timer view; use observe() when an immutable effect snapshot is required.longgetTimerRemaining(String name) Source-compatible local timer helper: absent timer means zero, not proven inactive effect.booleanisTimerActive(String name) Source-compatible local timer helper; UNKNOWN effects require observe(), not this boolean.voidonGameMessage(net.runelite.api.ChatMessageType type, String message) Bounded chat capture, including Elorin's flask and death messages.startTimer(String name, long durationMs) Explicit local timer helper, not evidence of server acceptance.
-
Field Details
-
OVERLOAD
- See Also:
-
PRAYER_RENEWAL
- See Also:
-
OVERLOAD_MS
public static final long OVERLOAD_MS- See Also:
-
RENEWAL_MS
public static final long RENEWAL_MS- See Also:
-
-
Method Details
-
startTimer
Explicit local timer helper, not evidence of server acceptance. Named timers work on every profile, but starting one cannot make an unsupported built-in effect observable. -
getTimer
Live local timer view; use observe() when an immutable effect snapshot is required. -
getTimerRemaining
Source-compatible local timer helper: absent timer means zero, not proven inactive effect. -
isTimerActive
Source-compatible local timer helper; UNKNOWN effects require observe(), not this boolean. -
clearTimer
-
clearAll
public void clearAll()Clears local bookkeeping without asserting that any in-game effect ended. -
observe
-
onGameMessage
Bounded chat capture, including Elorin's flask and death messages.
-