public class GMTimes extends TimeKeeper
lastStateChange, state, times
Constructor and Description |
---|
GMTimes() |
GMTimes(Map<String,Long> times) |
GMTimes(Map<String,Long> times,
String lastState,
long lastStateChange) |
GMTimes(String lastState) |
GMTimes(String lastState,
long lastStateChange) |
Modifier and Type | Method and Description |
---|---|
static String[] |
getGMKeyArray() |
String |
getState() |
void |
resetTimes(long time) |
void |
setAllGMTimes(long... times)
Sets times for all 4 gamemodes.
|
changeState, equals, getLastStateChange, getTime, getTimes, getTotal, hashCode, renameState, resetState, resetState, setLastStateChange, setState, setTime, setTimes, toString
public GMTimes(String lastState, long lastStateChange)
public GMTimes(String lastState)
public GMTimes()
public static 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.IllegalArgumentException
- If any parameter is null.public void resetTimes(long time)
public String getState()
getState
in class TimeKeeper
Copyright © 2017. All rights reserved.