Class Achievement


  • public class Achievement
    extends StatBase
    + 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

      • displayColumn

        public final int displayColumn
      • displayRow

        public final int displayRow
      • parentAchievement

        public final Achievement parentAchievement
      • theItemStack

        public final ItemStack theItemStack
    • Constructor Detail

      • Achievement

        public Achievement​(java.lang.String parString1,
                           java.lang.String parString2,
                           int column,
                           int row,
                           Item parItem,
                           Achievement parent)
      • Achievement

        public Achievement​(java.lang.String parString1,
                           java.lang.String parString2,
                           int column,
                           int row,
                           Block parBlock,
                           Achievement parent)
      • Achievement

        public Achievement​(java.lang.String parString1,
                           java.lang.String parString2,
                           int column,
                           int row,
                           ItemStack parItemStack,
                           Achievement parent)
    • Method Detail

      • initIndependentStat

        public Achievement initIndependentStat()
        + Initializes the current stat as independent (i.e., lacking prerequisites for being updated) and returns the current instance.
        Overrides:
        initIndependentStat in class StatBase
      • setSpecial

        public Achievement setSpecial()
        + Special achievements have a 'spiked' (on normal texture pack) frame, special achievements are the hardest ones to achieve.
      • isAchievement

        public boolean isAchievement()
        + Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).
        Overrides:
        isAchievement in class StatBase
      • getDescription

        public java.lang.String getDescription()
        + Returns the fully description of the achievement - ready to be displayed on screen.
      • setStatStringFormatter

        public Achievement setStatStringFormatter​(IStatStringFormat parIStatStringFormat)
        + Defines a string formatter for the achievement.
      • getSpecial

        public boolean getSpecial()
        + Special achievements have a 'spiked' (on normal texture pack) frame, special achievements are the hardest ones to achieve.