Package net.minecraft.stats
Class Achievement
- java.lang.Object
-
- net.minecraft.stats.StatBase
-
- net.minecraft.stats.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 Summary
Fields Modifier and Type Field Description intdisplayColumnintdisplayRowAchievementparentAchievementItemStacktheItemStack-
Fields inherited from class net.minecraft.stats.StatBase
distanceStatType, field_111202_k, isIndependent, simpleStatType, statId, timeStatType
-
-
Constructor Summary
Constructors Constructor Description Achievement(java.lang.String parString1, java.lang.String parString2, int column, int row, Block parBlock, Achievement parent)Achievement(java.lang.String parString1, java.lang.String parString2, int column, int row, Item parItem, Achievement parent)Achievement(java.lang.String parString1, java.lang.String parString2, int column, int row, ItemStack parItemStack, Achievement parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Achievementfunc_150953_b(java.lang.Class<? extends IJsonSerializable> parClass1)java.lang.StringgetDescription()+ Returns the fully description of the achievement - ready to be displayed on screen.booleangetSpecial()+ Special achievements have a 'spiked' (on normal texture pack) frame, special achievements are the hardest ones to achieve.IChatComponentgetStatName()AchievementinitIndependentStat()+ Initializes the current stat as independent (i.e., lacking prerequisites for being updated) and returns the current instance.booleanisAchievement()+ Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).AchievementregisterStat()+ Register the stat into StatList.AchievementsetSpecial()+ Special achievements have a 'spiked' (on normal texture pack) frame, special achievements are the hardest ones to achieve.AchievementsetStatStringFormatter(IStatStringFormat parIStatStringFormat)+ Defines a string formatter for the achievement.-
Methods inherited from class net.minecraft.stats.StatBase
equals, format, func_150952_k, func_150954_l, func_150955_j, hashCode, toString
-
-
-
-
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:
initIndependentStatin classStatBase
-
setSpecial
public Achievement setSpecial()
+ Special achievements have a 'spiked' (on normal texture pack) frame, special achievements are the hardest ones to achieve.
-
registerStat
public Achievement registerStat()
+ Register the stat into StatList.- Overrides:
registerStatin classStatBase
-
isAchievement
public boolean isAchievement()
+ Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).- Overrides:
isAchievementin classStatBase
-
getStatName
public IChatComponent getStatName()
- Overrides:
getStatNamein classStatBase
-
func_150953_b
public Achievement func_150953_b(java.lang.Class<? extends IJsonSerializable> parClass1)
- Overrides:
func_150953_bin classStatBase
-
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.
-
-