Class OSRSCombatGauge
- java.lang.Object
-
- com.runemate.game.api.osrs.entities.status.OSRSCombatGauge
-
- All Implemented Interfaces:
CombatGauge
,Validatable
public final class OSRSCombatGauge extends java.lang.Object implements CombatGauge
-
-
Constructor Summary
Constructors Constructor Description OSRSCombatGauge(long uid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentWidth()
int
getMaxWidth()
int
getPercent()
Gets the percentage of the gauge that is filled upboolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphjava.lang.String
toString()
-
-
-
Method Detail
-
getMaxWidth
public int getMaxWidth()
- Specified by:
getMaxWidth
in interfaceCombatGauge
-
getCurrentWidth
public int getCurrentWidth()
- Specified by:
getCurrentWidth
in interfaceCombatGauge
-
getPercent
public int getPercent()
Description copied from interface:CombatGauge
Gets the percentage of the gauge that is filled up- Specified by:
getPercent
in interfaceCombatGauge
- Returns:
- The percentage if available, otherwise -1
-
isValid
public boolean isValid()
Description copied from interface:Validatable
Verifies whether this entity is valid and still exists, typically on the world-graph- Specified by:
isValid
in interfaceValidatable
- Returns:
- true if it's still available, otherwise false
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-