本文整理汇总了Java中net.minecraft.world.storage.WorldInfo.isHardcoreModeEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java WorldInfo.isHardcoreModeEnabled方法的具体用法?Java WorldInfo.isHardcoreModeEnabled怎么用?Java WorldInfo.isHardcoreModeEnabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.world.storage.WorldInfo
的用法示例。
在下文中一共展示了WorldInfo.isHardcoreModeEnabled方法的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";
}
}
示例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";
}
}
示例3: WorldSettings
import net.minecraft.world.storage.WorldInfo; //导入方法依赖的package包/类
public WorldSettings(WorldInfo info)
{
this(info.getSeed(), info.getGameType(), info.isMapFeaturesEnabled(), info.isHardcoreModeEnabled(), info.getTerrainType());
}