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

项目:ZeroQuest    文件:BiomeGenNileSavanna.java   
public BiomeGenBase createMutatedBiome(int p_180277_1_)
{
    BiomeGenSavanna.Mutated mutated = new BiomeGenSavanna.Mutated(p_180277_1_, this);
    mutated.temperature = (this.temperature + 1.0F) * 0.5F;
    mutated.minHeight = this.minHeight * 0.5F + 0.3F;
    mutated.maxHeight = this.maxHeight * 0.5F + 1.2F;
    return mutated;
}
项目:Real-Life-Mod-1.8    文件:TemperatureHelper.java   
public static float getTemperaturesForBiomes(BiomeGenBase biome, EntityPlayer player) {
    if (biome instanceof BiomeGenBeach) {
        return 30;
    }
    if (biome instanceof BiomeGenHills) {
        if (player.posY > 64) {
            return (float) (18 - player.posY - 64 / 250);
        } else
            return 18;
    }
    if (biome instanceof BiomeGenDesert) {
        return 40;
    }

    if (biome instanceof BiomeGenForest) {
        return 22;
    }

    if (biome instanceof BiomeGenEnd) {
        return -23;
    }

    if (biome instanceof BiomeGenHell) {
        return 40;
    }

    if (biome instanceof BiomeGenJungle) {
        return -25;
    }

    if (biome instanceof BiomeGenOcean) {
        return 15;
    }

    if (biome instanceof BiomeGenPlains) {
        return 23;
    }

    if (biome instanceof BiomeGenRiver) {
        return 19;
    }

    if (biome instanceof BiomeGenSavanna) {
        return 33;
    }

    if (biome instanceof BiomeGenSwamp) {
        return 21;
    }

    if (biome instanceof BiomeGenSnow) {
        return -5;
    }

    if (biome instanceof BiomeGenStoneBeach) {
        return 28;
    }

    if (biome instanceof BiomeGenMushroomIsland) {
        return 23;
    }

    if (biome instanceof BiomeGenMutated) {
        return (float) (Math.random() * 30);
    }

    if (biome instanceof BiomeGenMesa) {
        return (float) (Math.random() * 30);
    }

    return 21.3f;
}
项目:Corundum    文件:SavannaBiome.java   
private SavannaBiomeType() {
    super((BiomeGenSavanna) BiomeGenBase.savanna);
}
项目:Corundum    文件:SavannaPlateauBiome.java   
private SavannaPlateauBiomeType() {
    super((BiomeGenSavanna) BiomeGenBase.savannaPlateau);
}