public class StatisticsManagerServer extends StatisticsManager
Modifier and Type | Field and Description |
---|---|
private java.util.Set<StatBase> |
dirty |
private int |
lastStatRequest |
private static org.apache.logging.log4j.Logger |
LOGGER |
private MinecraftServer |
mcServer |
private java.io.File |
statsFile |
statsData
Constructor and Description |
---|
StatisticsManagerServer(MinecraftServer serverIn,
java.io.File statsFileIn) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dumpJson(java.util.Map<StatBase,TupleIntJsonSerializable> p_150880_0_) |
private java.util.Set<StatBase> |
getDirty() |
void |
markAllDirty() |
java.util.Map<StatBase,TupleIntJsonSerializable> |
parseJson(java.lang.String p_150881_1_) |
void |
readStatFile() |
void |
saveStatFile() |
void |
sendStats(EntityPlayerMP player) |
void |
unlockAchievement(EntityPlayer playerIn,
StatBase statIn,
int p_150873_3_) |
increaseStat, readStat
private static final org.apache.logging.log4j.Logger LOGGER
private final MinecraftServer mcServer
private final java.io.File statsFile
private final java.util.Set<StatBase> dirty
private int lastStatRequest
public StatisticsManagerServer(MinecraftServer serverIn, java.io.File statsFileIn)
public void readStatFile()
public void saveStatFile()
public void unlockAchievement(EntityPlayer playerIn, StatBase statIn, int p_150873_3_)
unlockAchievement
in class StatisticsManager
private java.util.Set<StatBase> getDirty()
public java.util.Map<StatBase,TupleIntJsonSerializable> parseJson(java.lang.String p_150881_1_)
public static java.lang.String dumpJson(java.util.Map<StatBase,TupleIntJsonSerializable> p_150880_0_)
public void markAllDirty()
public void sendStats(EntityPlayerMP player)