Java 类net.minecraft.world.biome.BiomeProviderSingle 实例源码

项目:Zombe-Modpack    文件:WorldProvider.java   
/**
 * 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());
    }
}
项目:Backmemed    文件:WorldProvider.java   
/**
 * 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());
    }
}
项目:justenoughdimensions    文件:WorldProviderSurfaceJED.java   
@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);
    }
}
项目:Backmemed    文件:WorldProviderEnd.java   
/**
 * 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;
}
项目:Backmemed    文件:WorldProviderHell.java   
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
    this.isHellWorld = true;
    this.hasNoSky = true;
}
项目:CustomWorldGen    文件:WorldProviderEnd.java   
/**
 * 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;
}
项目:CustomWorldGen    文件:WorldProviderHell.java   
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
    this.isHellWorld = true;
    this.hasNoSky = true;
}
项目:nVoid    文件:WorldProviderVoidEnd.java   
@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;
       }
}
项目:LightningCraft    文件:LCWorldProviderUnderworld.java   
@Override
public void createBiomeProvider() {
    this.biomeProvider = new BiomeProviderSingle(LCBiomes.underworld);
    this.setDimension(LCDimensions.underworldID);
    this.hasNoSky = true;
    this.isHellWorld = false; // place some water bruh
}
项目:justenoughdimensions    文件:WorldProviderHellJED.java   
@Override
public void init()
{
    this.biomeProvider = new BiomeProviderSingle(Biomes.HELL);
    this.doesWaterVaporize = true;
    this.nether = true;
}
项目:justenoughdimensions    文件:WorldUtils.java   
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);
            }
        }
    }
}
项目:AbyssalCraft    文件:WorldProviderOmothol.java   
@Override
public void init()
{
    biomeProvider = new BiomeProviderSingle(ACBiomes.omothol);
    setDimension(ACLib.omothol_id);
    //      hasNoSky = true;
}
项目:CrystalMod    文件:PlayerCubeWorldProvider.java   
@Override
protected void init()
   {
       this.hasSkyLight = true;
       this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
   }
项目:Wizardry    文件:WorldProviderUnderWorld.java   
@Override
public void init() {
    biomeProvider = new BiomeProviderSingle(ModBiomes.BIOME_UNDERWORLD);
    setDimension(ConfigValues.underworldID);
}
项目:TeleToro    文件:TeletoryWorldProvider.java   
public TeletoryWorldProvider() {
    this.biomeProvider = new BiomeProviderSingle(Biomes.VOID);
    this.hasSkyLight = false;
}
项目:Malgra    文件:WorldProviderResearch.java   
/**
 * creates a new world chunk manager for WorldProvider
 */
public void createBiomeProvider() {
    this.biomeProvider = new BiomeProviderSingle(Biomes.SKY);
    this.hasSkyLight = false;
    System.out.println(getDimension());
}
项目:Kingdom-Keys-Re-Coded    文件:WorldProviderDestinyIslands.java   
@Override
protected void init() {
    this.biomeProvider = new BiomeProviderSingle(ModBiomes.DestinyIslandsBiome);
    this.hasSkyLight = true;
    NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.destinyIslands);
}
项目:Kingdom-Keys-Re-Coded    文件:WorldProviderDiveToTheHeart.java   
@Override
protected void init() {
    this.biomeProvider = new BiomeProviderSingle(ModBiomes.DiveToTheHeartBiome);
    this.hasSkyLight = true;
    NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.diveToTheHeart);
}
项目:Kingdom-Keys-Re-Coded    文件:WorldProviderTraverseTown.java   
@Override
protected void init() {
    this.biomeProvider = new BiomeProviderSingle(ModBiomes.TraverseTownBiome);
    this.hasSkyLight = false;
    NBTTagCompound nbttagcompound = this.world.getWorldInfo().getDimensionData(ModDimensions.traverseTownID);
}
项目:AbyssalCraft    文件:WorldProviderDarkRealm.java   
@Override
public void init() {
    biomeProvider = new BiomeProviderSingle(ACBiomes.dark_realm);
    setDimension(ACLib.dark_realm_id);
    //      hasNoSky = true;
}
项目:AbyssalCraft    文件:WorldProviderAbyss.java   
@Override
public void init() {
    biomeProvider = new BiomeProviderSingle(ACBiomes.abyssal_wastelands);
    setDimension(ACLib.abyssal_wasteland_id);
    //      hasNoSky = true;
}