GuiMainMenu.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:BaseClient 作者:
/**
 * Adds Demo buttons on Main Menu for players who are playing Demo.
 */
private void addDemoButtons(int p_73972_1_, int p_73972_2_)
{
    this.buttonList.add(new GuiButton(11, this.width / 2 - 100, p_73972_1_, I18n.format("menu.playdemo", new Object[0])));
    this.buttonList.add(this.buttonResetDemo = new GuiButton(12, this.width / 2 - 100, p_73972_1_ + p_73972_2_ * 1, I18n.format("menu.resetdemo", new Object[0])));
    ISaveFormat isaveformat = this.mc.getSaveLoader();
    WorldInfo worldinfo = isaveformat.getWorldInfo("Demo_World");

    if (worldinfo == null)
    {
        this.buttonResetDemo.enabled = false;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号