Class 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 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)
    • 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)
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • func_150954_l

        public java.lang.Class<? extends IJsonSerializable> func_150954_l()