Class StatCollector


  • public class StatCollector
    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)
    • Constructor Summary

      Constructors 
      Constructor Description
      StatCollector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canTranslate​(java.lang.String key)
      + Determines whether or not translateToLocal will find a translation for the given key.
      static long getLastTranslationUpdateTimeInMilliseconds()
      + Gets the time, in milliseconds since epoch, that the translation mapping was last updated
      static java.lang.String translateToFallback​(java.lang.String key)
      + Translates a Stat name using the fallback (hardcoded en_US) locale.
      static java.lang.String translateToLocal​(java.lang.String key)
      + Translates a Stat name
      static java.lang.String translateToLocalFormatted​(java.lang.String key, java.lang.Object... format)
      + Translates a Stat name with format args
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StatCollector

        public StatCollector()
    • Method Detail

      • translateToLocal

        public static java.lang.String translateToLocal​(java.lang.String key)
        + Translates a Stat name
      • translateToLocalFormatted

        public static java.lang.String translateToLocalFormatted​(java.lang.String key,
                                                                 java.lang.Object... format)
        + Translates a Stat name with format args
      • translateToFallback

        public static java.lang.String translateToFallback​(java.lang.String key)
        + Translates a Stat name using the fallback (hardcoded en_US) locale. Looks like it's only intended to be used if translateToLocal fails.
      • canTranslate

        public static boolean canTranslate​(java.lang.String key)
        + Determines whether or not translateToLocal will find a translation for the given key.
      • getLastTranslationUpdateTimeInMilliseconds

        public static long getLastTranslationUpdateTimeInMilliseconds()
        + Gets the time, in milliseconds since epoch, that the translation mapping was last updated