本文整理汇总了Java中net.minecraft.world.biome.WorldChunkManagerHell类的典型用法代码示例。如果您正苦于以下问题:Java WorldChunkManagerHell类的具体用法?Java WorldChunkManagerHell怎么用?Java WorldChunkManagerHell使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorldChunkManagerHell类属于net.minecraft.world.biome包,在下文中一共展示了WorldChunkManagerHell类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
protected void registerWorldChunkManager()
{
WorldType worldtype = this.worldObj.getWorldInfo().getTerrainType();
if (worldtype == WorldType.FLAT)
{
FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.createFlatGeneratorFromString(this.worldObj.getWorldInfo().getGeneratorOptions());
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.getBiomeFromBiomeList(flatgeneratorinfo.getBiome(), BiomeGenBase.field_180279_ad), 0.5F);
}
else if (worldtype == WorldType.DEBUG_WORLD)
{
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.plains, 0.0F);
}
else
{
this.worldChunkMgr = new WorldChunkManager(this.worldObj);
}
}
示例2: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
protected void registerWorldChunkManager() {
if(wrapped.getType().equals("overworld")){
this.worldChunkMgr = new WorldChunkManager(this.worldObj);
}else if(wrapped.getType().equals("void")){
this.worldChunkMgr = new WorldChunkManagerVoid(this.worldObj);
}else if(wrapped.getType().equals("nether")){
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F);
this.isHellWorld = true;
this.hasNoSky = true;
}else if(wrapped.getType().equals("end")){
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.0F);
this.hasNoSky = true;
}else if(wrapped.getType().equals("flat")){
FlatGeneratorInfo info = FlatGeneratorInfo.createFlatGeneratorFromString(this.wrapped.getOptions());
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.getBiome(info.getBiome()), 0.5F);
}else{
throw new IllegalArgumentException("Unknown world type " + this.wrapped.getType());
}
}
示例3: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void registerWorldChunkManager()
{
// WorldType type;
// type = new WorldType(0, "Aracoria");
// for (BiomeGenBase biome : type.base12Biomes)
// {
// type.removeBiome(biome);
// }
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome);
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome1);
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome2);
// this.worldChunkMgr = new WorldChunkManager(this.worldObj.getSeed(), type);
//
this.worldChunkMgr = new WorldChunkManagerHell(SojournDimensionRegistry.aquatanBiome, 1.0F, 1.0F);
}
示例4: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void registerWorldChunkManager()
{
// WorldType type;
// type = new WorldType(0, "Aracoria");
// for (BiomeGenBase biome : type.base12Biomes)
// {
// type.removeBiome(biome);
// }
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome);
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome1);
// type.addNewBiome(SojournDimensionRegistry.aracoriaBiome2);
// this.worldChunkMgr = new WorldChunkManager(this.worldObj.getSeed(), type);
//
this.worldChunkMgr = new WorldChunkManagerHell(SojournDimensionRegistry.aracoriaBiome1, 1.0F, 1.0F);
}
示例5: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.0F);
this.dimensionId = 1;
this.hasNoSky = true;
}
示例6: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F);
this.isHellWorld = true;
this.hasNoSky = true;
this.dimensionId = -1;
}
示例7: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(CoalWorld.biome, 0.0F);
this.isHellWorld = true;
this.hasNoSky = true;
this.dimensionId = DIMID;
}
示例8: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(mod_Rediscovered.heaven, this.dimensionId);
this.dimensionId = mod_Rediscovered.DimID;
this.hasNoSky = false;
}
示例9: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
/**
* creates a new world chunk manager for WorldProvider
*/
protected void registerWorldChunkManager()
{
if (this.worldObj.getWorldInfo().getTerrainType() == WorldType.FLAT)
{
FlatGeneratorInfo var1 = FlatGeneratorInfo.createFlatGeneratorFromString(this.worldObj.getWorldInfo().getGeneratorOptions());
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.func_150568_d(var1.getBiome()), 0.5F);
}
else
{
this.worldChunkMgr = new WorldChunkManager(this.worldObj);
}
}
示例10: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
public void registerWorldChunkManager(){
this.worldChunkMgr = new WorldChunkManagerHell(RunesAndSilver.OldForestBiome, 0.2F, 0.1F);
//this.dimensionId = Main.dimensionIDRune;
this.isHellWorld = true;
this.hasNoSky = true;
}
示例11: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
public void registerWorldChunkManager(){
this.worldChunkMgr = new WorldChunkManagerHell(RunesAndSilver.RuneBiome, 0.8F, 0.1F);
//this.dimensionId = Main.dimensionIDRune2;
//this.isHellWorld = true;
this.hasNoSky = true;
}
示例12: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
public void registerWorldChunkManager()
{
/** tells Minecraft to use our new WorldChunkManager **/
this.worldChunkMgr = new WorldChunkManagerHell(ModBiomes.darkWasteland, 0F);
this.isHellWorld = true;
this.hasNoSky = false;
this.dimensionId = ZeroQuest.DarkaxID;
}
示例13: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
@Override
public void registerWorldChunkManager() {
/** tells Minecraft to use our new WorldChunkManager **/
this.worldChunkMgr = new WorldChunkManagerHell(ModBiomes.darkWasteland, 0F);
this.isHellWorld = true;
this.hasNoSky = false;
this.dimensionId = IDs.Darkax;
}
示例14: getChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
public WorldChunkManager getChunkManager(World world)
{
if (this == FLAT)
{
FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.createFlatGeneratorFromString(world.getWorldInfo().getGeneratorOptions());
return new WorldChunkManagerHell(BiomeGenBase.getBiome(flatgeneratorinfo.getBiome()), 0.5F);
}
else
{
return new WorldChunkManager(world);
}
}
示例15: registerWorldChunkManager
import net.minecraft.world.biome.WorldChunkManagerHell; //导入依赖的package包/类
public void registerWorldChunkManager()
{
this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.hell, 0.0F);
this.isHellWorld = true;
this.hasNoSky = true;
this.dimensionId = -1;
}