本文整理匯總了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;
}