本文整理汇总了Java中net.minecraft.stats.Achievement.getDescription方法的典型用法代码示例。如果您正苦于以下问题:Java Achievement.getDescription方法的具体用法?Java Achievement.getDescription怎么用?Java Achievement.getDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.stats.Achievement
的用法示例。
在下文中一共展示了Achievement.getDescription方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: displayUnformattedAchievement
import net.minecraft.stats.Achievement; //导入方法依赖的package包/类
public void displayUnformattedAchievement(Achievement achievementIn)
{
this.achievementTitle = achievementIn.getStatName().getUnformattedText();
this.achievementDescription = achievementIn.getDescription();
this.notificationTime = Minecraft.getSystemTime() + 2500L;
this.theAchievement = achievementIn;
this.permanentNotification = true;
}
示例2: func_146255_b
import net.minecraft.stats.Achievement; //导入方法依赖的package包/类
public void func_146255_b(Achievement p_146255_1_)
{
this.field_146268_i = p_146255_1_.func_150951_e().getUnformattedText();
this.field_146265_j = p_146255_1_.getDescription();
this.field_146263_l = Minecraft.getSystemTime() + 2500L;
this.field_146266_k = p_146255_1_;
this.field_146262_n = true;
}
示例3: queueAchievementInformation
import net.minecraft.stats.Achievement; //导入方法依赖的package包/类
/**
* Queue a information about a achievement to be displayed.
*/
public void queueAchievementInformation(Achievement par1Achievement)
{
this.achievementGetLocalText = I18n.getString(par1Achievement.getName());
this.achievementStatName = par1Achievement.getDescription();
this.achievementTime = Minecraft.getSystemTime() - 2500L;
this.theAchievement = par1Achievement;
this.haveAchiement = true;
}