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


Java BiomeProviderSingle类代码示例

本文整理汇总了Java中net.minecraft.world.biome.BiomeProviderSingle的典型用法代码示例。如果您正苦于以下问题:Java BiomeProviderSingle类的具体用法?Java BiomeProviderSingle怎么用?Java BiomeProviderSingle使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
 * creates a new world chunk manager for WorldProvider
 */
protected void createBiomeProvider()
{
    this.field_191067_f = true;
    WorldType worldtype = this.worldObj.getWorldInfo().getTerrainType();

    if (worldtype == WorldType.FLAT)
    {
        FlatGeneratorInfo flatgeneratorinfo = FlatGeneratorInfo.createFlatGeneratorFromString(this.worldObj.getWorldInfo().getGeneratorOptions());
        this.biomeProvider = new BiomeProviderSingle(Biome.getBiome(flatgeneratorinfo.getBiome(), Biomes.DEFAULT));
    }
    else if (worldtype == WorldType.DEBUG_WORLD)
    {
        this.biomeProvider = new BiomeProviderSingle(Biomes.PLAINS);
    }
    else
    {
        this.biomeProvider = new BiomeProvider(this.worldObj.getWorldInfo());
    }
}
 
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:23,代码来源:WorldProvider.java

示例2: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init()
{
    super.init();

    // If this dimension has been configured for a single biome,
    // then set it here so that it's early enough for Sponge to use it.
    String biomeName = DimensionConfig.instance().getBiomeFor(this.getDimension());
    Biome biome = biomeName != null ? Biome.REGISTRY.getObject(new ResourceLocation(biomeName)) : null;

    if (biome != null)
    {
        JustEnoughDimensions.logInfo("WorldProviderSurfaceJED.init(): Using BiomeProviderSingle with biome '{}' for dimension {}",
                biomeName, this.getDimension());
        this.biomeProvider = new BiomeProviderSingle(biome);
    }
}
 
开发者ID:maruohon,项目名称:justenoughdimensions,代码行数:18,代码来源:WorldProviderSurfaceJED.java

示例3: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
    NBTTagCompound nbttagcompound = this.worldObj.getWorldInfo().getDimensionData(DimensionType.THE_END);
    this.dragonFightManager = this.worldObj instanceof WorldServer ? new DragonFightManager((WorldServer)this.worldObj, nbttagcompound.getCompoundTag("DragonFight")) : null;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:10,代码来源:WorldProviderEnd.java

示例4: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
    this.isHellWorld = true;
    this.hasNoSky = true;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:10,代码来源:WorldProviderHell.java

示例5: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
    this.hasNoSky = true;
    NBTTagCompound nbttagcompound = this.worldObj.getWorldInfo().getDimensionData(DimensionType.THE_END);
    this.dragonFightManager = this.worldObj instanceof WorldServer ? new DragonFightManager((WorldServer)this.worldObj, nbttagcompound.getCompoundTag("DragonFight")) : null;
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:11,代码来源:WorldProviderEnd.java

示例6: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
   public void init()
   {
   	if (Config.voidBiomeEnd) {
   		this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
	} else {
		this.biomeProvider = new VoidBiomeProvider(world);
	}

       if (Config.endDragonEnabled) {
           NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(DimensionType.THE_END.getId());
           this.dragonFightManager = this.world instanceof WorldServer ? new DragonFightVoid((WorldServer)this.world,
				nbttagcompound.getCompoundTag("DragonFight")) : null;
       }
}
 
开发者ID:Vashmeed,项目名称:nVoid,代码行数:16,代码来源:WorldProviderVoidEnd.java

示例7: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void createBiomeProvider() {
	this.biomeProvider = new BiomeProviderSingle(LCBiomes.underworld);
	this.setDimension(LCDimensions.underworldID);
	this.hasNoSky = true;
	this.isHellWorld = false; // place some water bruh
}
 
开发者ID:sblectric,项目名称:LightningCraft,代码行数:8,代码来源:LCWorldProviderUnderworld.java

示例8: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
    this.doesWaterVaporize = true;
    this.nether = true;
}
 
开发者ID:maruohon,项目名称:justenoughdimensions,代码行数:8,代码来源:WorldProviderHellJED.java

示例9: overrideBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
public static void overrideBiomeProvider(World world)
{
    // For WorldProviderSurfaceJED the BiomeProvider has already been set in WorldProviderSurfaceJED#init()
    if ((world.provider instanceof WorldProviderSurfaceJED) == false)
    {
        int dimension = world.provider.getDimension();
        String biomeName = DimensionConfig.instance().getBiomeFor(dimension);
        Biome biome = biomeName != null ? Biome.REGISTRY.getObject(new ResourceLocation(biomeName)) : null;

        if (biome != null && ((world.provider.getBiomeProvider() instanceof BiomeProviderSingle) == false ||
            world.provider.getBiomeProvider().getBiome(BlockPos.ORIGIN) != biome))
        {
            BiomeProvider biomeProvider = new BiomeProviderSingle(biome);

            JustEnoughDimensions.logInfo("WorldUtils.overrideBiomeProvider: Overriding the BiomeProvider for dimension {} with {}" +
                " using the biome '{}'", dimension, biomeProvider.getClass().getName(), biomeName);

            try
            {
                field_WorldProvider_biomeProvider.set(world.provider, biomeProvider);
            }
            catch (Exception e)
            {
                JustEnoughDimensions.logger.error("Failed to override the BiomeProvider of dimension {}", dimension);
            }
        }
    }
}
 
开发者ID:maruohon,项目名称:justenoughdimensions,代码行数:29,代码来源:WorldUtils.java

示例10: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init()
{
	biomeProvider = new BiomeProviderSingle(ACBiomes.omothol);
	setDimension(ACLib.omothol_id);
	//		hasNoSky = true;
}
 
开发者ID:Shinoow,项目名称:AbyssalCraft,代码行数:8,代码来源:WorldProviderOmothol.java

示例11: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init()
   {
       this.hasSkyLight = true;
       this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
   }
 
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:7,代码来源:PlayerCubeWorldProvider.java

示例12: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
public void init() {
	biomeProvider = new BiomeProviderSingle(ModBiomes.BIOME_UNDERWORLD);
	setDimension(ConfigValues.underworldID);
}
 
开发者ID:TeamWizardry,项目名称:Wizardry,代码行数:6,代码来源:WorldProviderUnderWorld.java

示例13: TeletoryWorldProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
public TeletoryWorldProvider() {
	this.biomeProvider = new BiomeProviderSingle(Biomes.VOID);
	this.hasSkyLight = false;
}
 
开发者ID:ToroCraft,项目名称:TeleToro,代码行数:5,代码来源:TeletoryWorldProvider.java

示例14: createBiomeProvider

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider() {
    this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
    this.hasSkyLight = false;
    System.out.println(getDimension());
}
 
开发者ID:Ohrm,项目名称:Malgra,代码行数:9,代码来源:WorldProviderResearch.java

示例15: init

import net.minecraft.world.biome.BiomeProviderSingle; //导入依赖的package包/类
@Override
protected void init() {
    this.biomeProvider = new BiomeProviderSingle(ModBiomes.DestinyIslandsBiome);
    this.hasSkyLight = true;
    NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.destinyIslands);
}
 
开发者ID:Wehavecookies56,项目名称:Kingdom-Keys-Re-Coded,代码行数:7,代码来源:WorldProviderDestinyIslands.java


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