Class TomeOfWater
- java.lang.Object
-
- org.rspeer.game.service.telemetry.model.item.ChargeItem
-
- org.rspeer.game.service.telemetry.model.item.TomeOfWater
-
public class TomeOfWater extends ChargeItem
-
-
Constructor Summary
Constructors Constructor Description TomeOfWater(ChargeParameters chargeParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterchangeableItemgetInterchangeableItem()StringgetKey()List<ItemEntry>getRechargeMaterials()intgetRemainingCharges()int[]getUnchargedIds()voidonObservation(ChargeObservation observation)voidresetCharges()Resets charges to 0.-
Methods inherited from class org.rspeer.game.service.telemetry.model.item.ChargeItem
getChargeParameters, getItem, getLastUpdateTick, getWornElseCarried, isCheckRequired, isTracked, setLastUpdateTick
-
-
-
-
Constructor Detail
-
TomeOfWater
public TomeOfWater(ChargeParameters chargeParameters)
-
-
Method Detail
-
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
-
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)
-
getKey
public String getKey()
- Specified by:
getKeyin classChargeItem- Returns:
- an identifier for this item
-
onObservation
public void onObservation(ChargeObservation observation)
- Specified by:
onObservationin classChargeItem- Parameters:
observation- Triggers an observation sequence for this item
-
getInterchangeableItem
public InterchangeableItem getInterchangeableItem()
- Specified by:
getInterchangeableItemin classChargeItem- Returns:
- The
InterchangeableItemassociated with this item
-
getUnchargedIds
public int[] getUnchargedIds()
- Specified by:
getUnchargedIdsin classChargeItem- Returns:
- The uncharged item ids
-
getRechargeMaterials
public List<ItemEntry> getRechargeMaterials()
- Specified by:
getRechargeMaterialsin classChargeItem- Returns:
- A List of
ItemEntryrelative toChargeItem.getChargeParameters()
-
-