public class StatisticsManagerServer extends StatisticsManager
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_) |
java.util.Set<StatBase> |
getDirty() |
boolean |
hasUnsentAchievement() |
void |
markAllDirty() |
java.util.Map<StatBase,TupleIntJsonSerializable> |
parseJson(java.lang.String p_150881_1_) |
void |
readStatFile() |
void |
saveStatFile() |
void |
sendAchievements(EntityPlayerMP player) |
void |
sendStats(EntityPlayerMP player) |
void |
unlockAchievement(EntityPlayer playerIn,
StatBase statIn,
int p_150873_3_) |
canUnlockAchievement, countRequirementsUntilAvailable, getProgress, hasAchievementUnlocked, increaseStat, readStat, setProgress
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
public 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)
public void sendAchievements(EntityPlayerMP player)
public boolean hasUnsentAchievement()