Class QuetzalWhistle
java.lang.Object
org.rspeer.game.service.telemetry.model.item.ChargeItem
org.rspeer.game.service.telemetry.model.item.QuetzalWhistle
-
Constructor Summary
ConstructorsConstructorDescriptionQuetzalWhistle(ChargeParameters parameters, Function<ChargeParameters, List<ItemEntry>> rechargeMaterials) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()intint[]voidonObservation(ChargeObservation observation) voidResets charges to 0.Methods inherited from class ChargeItem
getChargedIds, getChargeParameters, getItem, getLastUpdateTick, getWornElseCarried, isCheckRequired, isTracked, setLastUpdateTick
-
Constructor Details
-
QuetzalWhistle
public QuetzalWhistle(ChargeParameters parameters, Function<ChargeParameters, List<ItemEntry>> rechargeMaterials)
-
-
Method Details
-
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
- Specified by:
getKeyin classChargeItem- Returns:
- an identifier for this item
-
onObservation
- Specified by:
onObservationin classChargeItem- Parameters:
observation- Triggers an observation sequence for this item
-
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
- Specified by:
getRechargeMaterialsin classChargeItem- Returns:
- A List of
ItemEntryrelative toChargeItem.getChargeParameters()
-