Class ItemTelemetryService
- java.lang.Object
-
- org.rspeer.game.service.telemetry.ItemTelemetryService
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNTRACKED
-
Constructor Summary
Constructors Constructor Description ItemTelemetryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLastUpdateTick(TelemetricItem item)
int
getTicksSinceUpdate(TelemetricItem item)
boolean
isDirty(TelemetricItem item)
boolean
isRechargeRequired(TelemetricItem item)
void
onChatMessageEvent(ChatMessageEvent event)
void
onUnsubscribe()
void
update(TelemetricItem item, int value)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.event.Service
onSubscribe
-
-
-
-
Field Detail
-
UNTRACKED
public static final int UNTRACKED
- See Also:
- Constant Field Values
-
-
Method Detail
-
onUnsubscribe
public void onUnsubscribe()
- Specified by:
onUnsubscribe
in interfaceService
-
onChatMessageEvent
public void onChatMessageEvent(ChatMessageEvent event)
-
update
public void update(TelemetricItem item, int value)
-
isDirty
public boolean isDirty(TelemetricItem item)
- Parameters:
item
- The item to check for- Returns:
true
if an items charge/telemetry information is unknown or uncached. If this is the case, you should do whatever is necessary to obtain that information. In most cases, interacting using the "Check" option on that item is sufficient.
-
getLastUpdateTick
public int getLastUpdateTick(TelemetricItem item)
-
getTicksSinceUpdate
public int getTicksSinceUpdate(TelemetricItem item)
-
isRechargeRequired
public boolean isRechargeRequired(TelemetricItem item)
-
-