FreezeState
Immutable freeze and freeze-immunity state for the local player and target.
Final classRLPlugins API
public final class FreezeStateTicks are game ticks. Freeze end and immunity end ticks are exclusive, which means a player is frozen while currentTick < freezeEndTick.
Members
Constructors
- newFreezeState(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)
Creates an immutable freeze snapshot.
Methods
- booleancanLocalBeFrozen()
Whether it can local be frozen.
- booleancanTargetBeFrozen()
Whether it can target be frozen.
- FreezeStateempty()
Returns an empty freeze state.
- booleanequals(Object)
Whether this and the other object are the same thing.
- intgetLocalFreezeEndTick()
The local freeze end tick.
- intgetLocalFreezeStartTick()
The local freeze start tick.
- intgetLocalFreezeTicks()
The local freeze ticks.
- intgetLocalImmunityEndTick()
The local immunity end tick.
- intgetLocalImmunityStartTick()
The local immunity start tick.
- intgetLocalImmunityTicks()
The local immunity ticks.
- intgetLocalRefreezeableTick()
The local refreezeable tick.
- intgetLocalTicksUntilRefreezeable()
The local ticks until refreezeable.
- intgetSnapshotTick()
The snapshot tick.
- FreezeState.FreezeStateTypegetState()
The state.
- intgetTargetFreezeEndTick()
The target freeze end tick.
- intgetTargetFreezeStartTick()
The target freeze start tick.
- intgetTargetFreezeTicks()
The target freeze ticks.
- intgetTargetImmunityEndTick()
The target immunity end tick.
- intgetTargetImmunityStartTick()
The target immunity start tick.
- intgetTargetImmunityTicks()
The target immunity ticks.
- intgetTargetRefreezeableTick()
The target refreezeable tick.
- intgetTargetTicksUntilRefreezeable()
The target ticks until refreezeable.
- inthashCode()
A number Java uses when this is put in a set or a map.
- booleanisLocalFrozen()
Whether local frozen.
- booleanisLocalImmune()
Whether local immune.
- booleanisTargetFrozen()
Whether target frozen.
- booleanisTargetImmune()
Whether target immune.
FreezeState(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)
public FreezeState(int localFreezeTicks, int targetFreezeTicks, int localImmunityTicks, int targetImmunityTicks, int localFreezeStartTick, int localFreezeEndTick, int localImmunityStartTick, int localImmunityEndTick, int localRefreezeableTick, int targetFreezeStartTick, int targetFreezeEndTick, int targetImmunityStartTick, int targetImmunityEndTick, int targetRefreezeableTick, int snapshotTick)Creates an immutable freeze snapshot.
Parameters
localFreezeTicks- Local freeze ticks.
targetFreezeTicks- Target freeze ticks.
localImmunityTicks- Local immunity ticks.
targetImmunityTicks- Target immunity ticks.
localFreezeStartTick- Local freeze start tick.
localFreezeEndTick- Local freeze end tick.
localImmunityStartTick- Local immunity start tick.
localImmunityEndTick- Local immunity end tick.
localRefreezeableTick- Local refreezeable tick.
targetFreezeStartTick- Target freeze start tick.
targetFreezeEndTick- Target freeze end tick.
targetImmunityStartTick- Target immunity start tick.
targetImmunityEndTick- Target immunity end tick.
targetRefreezeableTick- Target refreezeable tick.
snapshotTick- Snapshot tick.
canLocalBeFrozen()
public boolean canLocalBeFrozen()Whether it can local be frozen.
canTargetBeFrozen()
public boolean canTargetBeFrozen()Whether it can target be frozen.
empty()static
public static FreezeState empty()Returns an empty freeze state.
Returns
Empty freeze state.
equals(Object)
public boolean equals(Object o)Whether this and the other object are the same thing.
Parameters
o- O.
getLocalFreezeEndTick()
public int getLocalFreezeEndTick()The local freeze end tick.
getLocalFreezeStartTick()
public int getLocalFreezeStartTick()The local freeze start tick.
getLocalFreezeTicks()
public int getLocalFreezeTicks()The local freeze ticks.
getLocalImmunityEndTick()
public int getLocalImmunityEndTick()The local immunity end tick.
getLocalImmunityStartTick()
public int getLocalImmunityStartTick()The local immunity start tick.
getLocalImmunityTicks()
public int getLocalImmunityTicks()The local immunity ticks.
getLocalRefreezeableTick()
public int getLocalRefreezeableTick()The local refreezeable tick.
getLocalTicksUntilRefreezeable()
public int getLocalTicksUntilRefreezeable()The local ticks until refreezeable.
getSnapshotTick()
public int getSnapshotTick()The snapshot tick.
getState()
public FreezeState.FreezeStateType getState()The state.
getTargetFreezeEndTick()
public int getTargetFreezeEndTick()The target freeze end tick.
getTargetFreezeStartTick()
public int getTargetFreezeStartTick()The target freeze start tick.
getTargetFreezeTicks()
public int getTargetFreezeTicks()The target freeze ticks.
getTargetImmunityEndTick()
public int getTargetImmunityEndTick()The target immunity end tick.
getTargetImmunityStartTick()
public int getTargetImmunityStartTick()The target immunity start tick.
getTargetImmunityTicks()
public int getTargetImmunityTicks()The target immunity ticks.
getTargetRefreezeableTick()
public int getTargetRefreezeableTick()The target refreezeable tick.
getTargetTicksUntilRefreezeable()
public int getTargetTicksUntilRefreezeable()The target ticks until refreezeable.
hashCode()
public int hashCode()A number Java uses when this is put in a set or a map.
isLocalFrozen()
public boolean isLocalFrozen()Whether local frozen.
isLocalImmune()
public boolean isLocalImmune()Whether local immune.
isTargetFrozen()
public boolean isTargetFrozen()Whether target frozen.
isTargetImmune()
public boolean isTargetImmune()Whether target immune.
Also allowed
Every class has these, as in plain Java.
toString