当前位置: 首页>>代码示例>>Java>>正文


Java WorldInfo.isMapFeaturesEnabled方法代码示例

本文整理汇总了Java中net.minecraft.world.storage.WorldInfo.isMapFeaturesEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java WorldInfo.isMapFeaturesEnabled方法的具体用法?Java WorldInfo.isMapFeaturesEnabled怎么用?Java WorldInfo.isMapFeaturesEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.world.storage.WorldInfo的用法示例。


在下文中一共展示了WorldInfo.isMapFeaturesEnabled方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: func_146318_a

import net.minecraft.world.storage.WorldInfo; //导入方法依赖的package包/类
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";
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:23,代码来源:GuiCreateWorld.java

示例2: recreateFromExistingWorld

import net.minecraft.world.storage.WorldInfo; //导入方法依赖的package包/类
/**
 * Set the initial values of a new world to create, from the values from an existing world.
 *  
 * Called after construction when a user selects the "Recreate" button.
 */
public void recreateFromExistingWorld(WorldInfo original)
{
    this.worldName = I18n.format("selectWorld.newWorld.copyOf", new Object[] {original.getWorldName()});
    this.worldSeed = original.getSeed() + "";
    this.selectedIndex = original.getTerrainType().getWorldTypeID();
    this.chunkProviderSettingsJson = original.getGeneratorOptions();
    this.generateStructuresEnabled = original.isMapFeaturesEnabled();
    this.allowCheats = original.areCommandsAllowed();

    if (original.isHardcoreModeEnabled())
    {
        this.gameMode = "hardcore";
    }
    else if (original.getGameType().isSurvivalOrAdventure())
    {
        this.gameMode = "survival";
    }
    else if (original.getGameType().isCreative())
    {
        this.gameMode = "creative";
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:28,代码来源:GuiCreateWorld.java

示例3: WorldSettings

import net.minecraft.world.storage.WorldInfo; //导入方法依赖的package包/类
public WorldSettings(WorldInfo info)
{
    this(info.getSeed(), info.getGameType(), info.isMapFeaturesEnabled(), info.isHardcoreModeEnabled(), info.getTerrainType());
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:WorldSettings.java


注:本文中的net.minecraft.world.storage.WorldInfo.isMapFeaturesEnabled方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。