Class ChargeItem
java.lang.Object
org.rspeer.game.service.telemetry.model.item.ChargeItem
- Direct Known Subclasses:
AmuletOfBloodFury, Arclight, CrystalArmor, DartBlowpipe, EyeOfAyak, IbansStaff, MoonsOfPerilItem, QuetzalWhistle, RevenantItem, RingOfEndurance, RingOfSuffering, SanguinestiStaff, ScytheOfVitur, SerpentineHelm, TomeOfEarth, TomeOfFire, TomeOfWater, ToxicBlowpipe, TridentOfTheSeas, TridentOfTheSwamp, TumekensShadow, VenatorBow, WarpedSceptre
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]abstract InterchangeableItemabstract StringgetKey()intabstract intabstract int[]booleanisCheckRequired(int ticks) booleanabstract voidonObservation(ChargeObservation observation) abstract voidResets charges to 0.voidsetLastUpdateTick(int lastUpdateTick)
-
Constructor Details
-
ChargeItem
-
-
Method Details
-
getChargeParameters
- Returns:
- The charge parameters defined for this item
-
getLastUpdateTick
public int getLastUpdateTick()- Returns:
- The tick at which this was last updated, relative to
Game.getTickCount()
-
getRemainingCharges
public abstract int getRemainingCharges()- Returns:
- The number of remaining charges. For items like blowpipe this will only return the primary charge (scales)
-
resetCharges
public abstract void resetCharges()Resets charges to 0. For items like blowpipe this will also reset darts -
isTracked
public boolean isTracked()- Returns:
trueif this item has ever had its charges updated. It will hold true after the first check
-
isCheckRequired
public boolean isCheckRequired(int ticks) -
getKey
- Returns:
- an identifier for this item
-
onObservation
- Parameters:
observation- Triggers an observation sequence for this item
-
getInterchangeableItem
- Returns:
- The
InterchangeableItemassociated with this item
-
getChargedIds
public int[] getChargedIds()- Returns:
- The charged item ids used to identify whether this item is currently worn or carried.
-
getUnchargedIds
public abstract int[] getUnchargedIds()- Returns:
- The uncharged item ids
-
getRechargeMaterials
- Returns:
- A List of
ItemEntryrelative togetChargeParameters()
-
getItem
-
getWornElseCarried
-
setLastUpdateTick
public void setLastUpdateTick(int lastUpdateTick)
-