Class CrystalArmor
java.lang.Object
org.rspeer.game.service.telemetry.model.item.ChargeItem
org.rspeer.game.service.telemetry.model.item.CrystalArmor
- Direct Known Subclasses:
CrystalBody, CrystalHelm, CrystalLegs
-
Method Summary
Modifier and TypeMethodDescriptionabstract StringgetKey()intvoidonObservation(ChargeObservation observation) voidResets charges to 0.Methods inherited from class ChargeItem
getChargedIds, getChargeParameters, getInterchangeableItem, getItem, getLastUpdateTick, getUnchargedIds, getWornElseCarried, isCheckRequired, isTracked, setLastUpdateTick
-
Method Details
-
getKey
- Specified by:
getKeyin classChargeItem- Returns:
- an identifier for this item
-
getRemainingCharges
public int getRemainingCharges()- Specified by:
getRemainingChargesin classChargeItem- Returns:
- The number of remaining charges. For items like blowpipe this will only return the primary charge (scales)
-
resetCharges
public void resetCharges()Description copied from class:ChargeItemResets charges to 0. For items like blowpipe this will also reset darts- Specified by:
resetChargesin classChargeItem
-
onObservation
- Specified by:
onObservationin classChargeItem- Parameters:
observation- Triggers an observation sequence for this item
-
getRechargeMaterials
- Specified by:
getRechargeMaterialsin classChargeItem- Returns:
- A List of
ItemEntryrelative toChargeItem.getChargeParameters()
-