YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.stats.Achievement Class Reference
Inheritance diagram for net.minecraft.stats.Achievement:
net.minecraft.stats.StatBase

Public Member Functions

 Achievement (int par1, String par2Str, int par3, int par4, Item par5Item, Achievement par6Achievement)
 
 Achievement (int par1, String par2Str, int par3, int par4, Block par5Block, Achievement par6Achievement)
 
 Achievement (int par1, String par2Str, int par3, int par4, ItemStack par5ItemStack, Achievement par6Achievement)
 
Achievement setIndependent ()
 
Achievement setSpecial ()
 
Achievement registerAchievement ()
 
boolean isAchievement ()
 
String getDescription ()
 
Achievement setStatStringFormatter (IStatStringFormat par1IStatStringFormat)
 
boolean getSpecial ()
 
StatBase registerStat ()
 
StatBase initIndependentStat ()
 
- Public Member Functions inherited from net.minecraft.stats.StatBase
 StatBase (int par1, String par2Str, IStatType par3IStatType)
 
 StatBase (int par1, String par2Str)
 
StatBase initIndependentStat ()
 
StatBase registerStat ()
 
boolean isAchievement ()
 
String func_75968_a (int par1)
 
String getName ()
 
String toString ()
 

Public Attributes

final int displayColumn
 
final int displayRow
 
final Achievement parentAchievement
 
final ItemStack theItemStack
 
- Public Attributes inherited from net.minecraft.stats.StatBase
final int statId
 
final String statName
 
boolean isIndependent
 
String statGuid
 

Additional Inherited Members

- Static Public Attributes inherited from net.minecraft.stats.StatBase
static IStatType simpleStatType = new StatTypeSimple()
 
static IStatType timeStatType = new StatTypeTime()
 
static IStatType distanceStatType = new StatTypeDistance()
 

Constructor & Destructor Documentation

net.minecraft.stats.Achievement.Achievement ( int  par1,
String  par2Str,
int  par3,
int  par4,
Item  par5Item,
Achievement  par6Achievement 
)
net.minecraft.stats.Achievement.Achievement ( int  par1,
String  par2Str,
int  par3,
int  par4,
Block  par5Block,
Achievement  par6Achievement 
)
net.minecraft.stats.Achievement.Achievement ( int  par1,
String  par2Str,
int  par3,
int  par4,
ItemStack  par5ItemStack,
Achievement  par6Achievement 
)

Member Function Documentation

String net.minecraft.stats.Achievement.getDescription ( )

Returns the fully description of the achievement - ready to be displayed on screen.

boolean net.minecraft.stats.Achievement.getSpecial ( )

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

StatBase net.minecraft.stats.Achievement.initIndependentStat ( )

Initializes the current stat as independent (i.e., lacking prerequisites for being updated) and returns the current instance.

boolean net.minecraft.stats.Achievement.isAchievement ( )

Returns whether or not the StatBase-derived class is a statistic (running counter) or an achievement (one-shot).

Achievement net.minecraft.stats.Achievement.registerAchievement ( )

Adds the achievement on the internal list of registered achievements, also, it's check for duplicated id's.

StatBase net.minecraft.stats.Achievement.registerStat ( )

Register the stat into StatList.

Achievement net.minecraft.stats.Achievement.setIndependent ( )

Indicates whether or not the given achievement or statistic is independent (i.e., lacks prerequisites for being update).

Achievement net.minecraft.stats.Achievement.setSpecial ( )

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

Achievement net.minecraft.stats.Achievement.setStatStringFormatter ( IStatStringFormat  par1IStatStringFormat)

Defines a string formatter for the achievement.

Member Data Documentation

final int net.minecraft.stats.Achievement.displayColumn

Is the column (related to center of achievement gui, in 24 pixels unit) that the achievement will be displayed.

final int net.minecraft.stats.Achievement.displayRow

Is the row (related to center of achievement gui, in 24 pixels unit) that the achievement will be displayed.

final Achievement net.minecraft.stats.Achievement.parentAchievement

Holds the parent achievement, that must be taken before this achievement is avaiable.

final ItemStack net.minecraft.stats.Achievement.theItemStack

Holds the ItemStack that will be used to draw the achievement into the GUI.


The documentation for this class was generated from the following file: