GuiCreateWorld.java 文件源码

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

项目:BaseClient 作者:
public void func_146318_a(WorldInfo p_146318_1_)
{
    this.field_146330_J = I18n.format("selectWorld.newWorld.copyOf", new Object[] {p_146318_1_.getWorldName()});
    this.field_146329_I = p_146318_1_.getSeed() + "";
    this.selectedIndex = p_146318_1_.getTerrainType().getWorldTypeID();
    this.chunkProviderSettingsJson = p_146318_1_.getGeneratorOptions();
    this.field_146341_s = p_146318_1_.isMapFeaturesEnabled();
    this.allowCheats = p_146318_1_.areCommandsAllowed();

    if (p_146318_1_.isHardcoreModeEnabled())
    {
        this.gameMode = "hardcore";
    }
    else if (p_146318_1_.getGameType().isSurvivalOrAdventure())
    {
        this.gameMode = "survival";
    }
    else if (p_146318_1_.getGameType().isCreative())
    {
        this.gameMode = "creative";
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号