Package net.minecraft.stats
Class StatFileWriter
- java.lang.Object
-
- net.minecraft.stats.StatFileWriter
-
public class StatFileWriter extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<StatBase,TupleIntJsonSerializable>
statsData
-
Constructor Summary
Constructors Constructor Description StatFileWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUnlockAchievement(Achievement achievementIn)
+ Returns true if the parent has been unlocked, or there is no parent<T extends IJsonSerializable>
Tfunc_150870_b(StatBase parStatBase)
<T extends IJsonSerializable>
Tfunc_150872_a(StatBase parStatBase, T parIJsonSerializable)
int
func_150874_c(Achievement parAchievement)
boolean
hasAchievementUnlocked(Achievement achievementIn)
+ Returns true if the achievement has been unlocked.void
increaseStat(EntityPlayer player, StatBase stat, int amount)
int
readStat(StatBase stat)
+ Reads the given stat and returns its value as an int.void
unlockAchievement(EntityPlayer var1, StatBase statbase, int i)
+ Triggers the logging of an achievement and attempts to announce to server
-
-
-
Field Detail
-
statsData
protected final java.util.Map<StatBase,TupleIntJsonSerializable> statsData
-
-
Method Detail
-
hasAchievementUnlocked
public boolean hasAchievementUnlocked(Achievement achievementIn)
+ Returns true if the achievement has been unlocked.
-
canUnlockAchievement
public boolean canUnlockAchievement(Achievement achievementIn)
+ Returns true if the parent has been unlocked, or there is no parent
-
func_150874_c
public int func_150874_c(Achievement parAchievement)
-
increaseStat
public void increaseStat(EntityPlayer player, StatBase stat, int amount)
-
unlockAchievement
public void unlockAchievement(EntityPlayer var1, StatBase statbase, int i)
+ Triggers the logging of an achievement and attempts to announce to server
-
readStat
public int readStat(StatBase stat)
+ Reads the given stat and returns its value as an int.
-
func_150870_b
public <T extends IJsonSerializable> T func_150870_b(StatBase parStatBase)
-
func_150872_a
public <T extends IJsonSerializable> T func_150872_a(StatBase parStatBase, T parIJsonSerializable)
-
-