public class GMTimes extends TimeKeeper
lastStateChange, state, times
Constructor and Description |
---|
GMTimes() |
GMTimes(java.util.Map<java.lang.String,java.lang.Long> times) |
GMTimes(java.util.Map<java.lang.String,java.lang.Long> times,
java.lang.String lastState,
long lastStateChange) |
GMTimes(java.lang.String lastState) |
GMTimes(java.lang.String lastState,
long lastStateChange) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getGMKeyArray() |
java.lang.String |
getState() |
void |
resetTimes(long time) |
void |
setAllGMTimes(long... times)
Sets times for all 4 gamemodes.
|
addTime, changeState, equals, getLastStateChange, getTime, getTimes, getTotal, hashCode, renameState, resetState, resetState, setLastStateChange, setState, setTime, setTimes, toString
public GMTimes(java.util.Map<java.lang.String,java.lang.Long> times, java.lang.String lastState, long lastStateChange)
public GMTimes(java.lang.String lastState, long lastStateChange)
public GMTimes(java.lang.String lastState)
public GMTimes(java.util.Map<java.lang.String,java.lang.Long> times)
public GMTimes()
public static java.lang.String[] getGMKeyArray()
public void setAllGMTimes(long... times)
Give 1 - 4 parameters. times starts from Survival, ends in Spectator.
Given too few parameters (Under 4, rest are set as 0L) Extra parameters are ignored (Over 4)
times
- 1-4 time parameters.java.lang.IllegalArgumentException
- If any parameter is null.public void resetTimes(long time)
public java.lang.String getState()
getState
in class TimeKeeper