Package net.minecraft.stats
Class StatBase
- java.lang.Object
-
- net.minecraft.stats.StatBase
-
- Direct Known Subclasses:
Achievement
,StatBasic
,StatCrafting
public class StatBase 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 static IStatType
distanceStatType
static IStatType
field_111202_k
boolean
isIndependent
static IStatType
simpleStatType
java.lang.String
statId
static IStatType
timeStatType
-
Constructor Summary
Constructors Constructor Description StatBase(java.lang.String statIdIn, IChatComponent statNameIn)
StatBase(java.lang.String statIdIn, IChatComponent statNameIn, IStatType typeIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
java.lang.String
format(int parInt1)
IScoreObjectiveCriteria
func_150952_k()
StatBase
func_150953_b(java.lang.Class<? extends IJsonSerializable> oclass)
java.lang.Class<? extends IJsonSerializable>
func_150954_l()
IChatComponent
func_150955_j()
IChatComponent
getStatName()
int
hashCode()
StatBase
initIndependentStat()
+ Initializes the current stat as independent (i.e., lacking prerequisites for being updated) and returns the current instance.boolean
isAchievement()
+ Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).StatBase
registerStat()
+ Register the stat into StatList.java.lang.String
toString()
-
-
-
Field Detail
-
statId
public final java.lang.String statId
-
isIndependent
public boolean isIndependent
-
simpleStatType
public static IStatType simpleStatType
-
timeStatType
public static IStatType timeStatType
-
distanceStatType
public static IStatType distanceStatType
-
field_111202_k
public static IStatType field_111202_k
-
-
Constructor Detail
-
StatBase
public StatBase(java.lang.String statIdIn, IChatComponent statNameIn, IStatType typeIn)
-
StatBase
public StatBase(java.lang.String statIdIn, IChatComponent statNameIn)
-
-
Method Detail
-
initIndependentStat
public StatBase initIndependentStat()
+ Initializes the current stat as independent (i.e., lacking prerequisites for being updated) and returns the current instance.
-
registerStat
public StatBase registerStat()
+ Register the stat into StatList.
-
isAchievement
public boolean isAchievement()
+ Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).
-
format
public java.lang.String format(int parInt1)
-
getStatName
public IChatComponent getStatName()
-
func_150955_j
public IChatComponent func_150955_j()
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
func_150952_k
public IScoreObjectiveCriteria func_150952_k()
-
func_150954_l
public java.lang.Class<? extends IJsonSerializable> func_150954_l()
-
func_150953_b
public StatBase func_150953_b(java.lang.Class<? extends IJsonSerializable> oclass)
-
-