CombatSnapshot
Immutable combined combat timing snapshot.
Final classRLPlugins API
public final class CombatSnapshotMembers
Constructors
- newCombatSnapshot(CombatTarget, AttackTimer, AttackTimer, FreezeState, PidStatus, int)
Creates a CombatSnapshot.
Methods
- booleancanLocalAttack()
Whether it can local attack.
- booleancanTargetAttack()
Whether it can target attack.
- CombatSnapshotempty()
Empty.
- booleanequals(Object)
Whether this and the other object are the same thing.
- FreezeStategetFreezeState()
The freeze state.
- AttackTimergetLocalAttackTimer()
The local attack timer.
- PidStatusgetPidStatus()
The pid status.
- intgetSnapshotTick()
The snapshot tick.
- CombatTargetgetTarget()
The target.
- AttackTimergetTargetAttackTimer()
The target attack timer.
- inthashCode()
A number Java uses when this is put in a set or a map.
- booleanhasPidAdvantage()
Whether it has pid advantage.
- booleanhasTarget()
Whether it has target.
CombatSnapshot(CombatTarget, AttackTimer, AttackTimer, FreezeState, PidStatus, int)
public CombatSnapshot(CombatTarget target, AttackTimer localAttackTimer, AttackTimer targetAttackTimer, FreezeState freezeState, PidStatus pidStatus, int snapshotTick)Creates a CombatSnapshot.
Parameters
target- Target.
localAttackTimer- Local attack timer.
targetAttackTimer- Target attack timer.
freezeState- Freeze state.
pidStatus- Pid status.
snapshotTick- Snapshot tick.
canLocalAttack()
public boolean canLocalAttack()Whether it can local attack.
canTargetAttack()
public boolean canTargetAttack()Whether it can target attack.
empty()static
public static CombatSnapshot empty()Empty.
equals(Object)
public boolean equals(Object o)Whether this and the other object are the same thing.
Parameters
o- O.
getFreezeState()
public FreezeState getFreezeState()The freeze state.
getLocalAttackTimer()
public AttackTimer getLocalAttackTimer()The local attack timer.
getPidStatus()
public PidStatus getPidStatus()The pid status.
getSnapshotTick()
public int getSnapshotTick()The snapshot tick.
getTarget()
public CombatTarget getTarget()The target.
getTargetAttackTimer()
public AttackTimer getTargetAttackTimer()The target attack timer.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
hasPidAdvantage()
public boolean hasPidAdvantage()Whether it has pid advantage.
hasTarget()
public boolean hasTarget()Whether it has target.
Also allowed
Every class has these, as in plain Java.
toString