public class StatisticsManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<StatBase,TupleIntJsonSerializable> |
statsData |
Constructor and Description |
---|
StatisticsManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
canUnlockAchievement(Achievement achievementIn) |
int |
countRequirementsUntilAvailable(Achievement achievementIn) |
<T extends IJsonSerializable> |
getProgress(StatBase p_150870_1_) |
boolean |
hasAchievementUnlocked(Achievement achievementIn) |
void |
increaseStat(EntityPlayer player,
StatBase stat,
int amount) |
int |
readStat(StatBase stat) |
<T extends IJsonSerializable> |
setProgress(StatBase p_150872_1_,
T p_150872_2_) |
void |
unlockAchievement(EntityPlayer playerIn,
StatBase statIn,
int p_150873_3_) |
protected final java.util.Map<StatBase,TupleIntJsonSerializable> statsData
public boolean hasAchievementUnlocked(Achievement achievementIn)
public boolean canUnlockAchievement(Achievement achievementIn)
public void increaseStat(EntityPlayer player, StatBase stat, int amount)
public int countRequirementsUntilAvailable(Achievement achievementIn)
public void unlockAchievement(EntityPlayer playerIn, StatBase statIn, int p_150873_3_)
public int readStat(StatBase stat)
public <T extends IJsonSerializable> T getProgress(StatBase p_150870_1_)
public <T extends IJsonSerializable> T setProgress(StatBase p_150872_1_, T p_150872_2_)