All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.level.biome.impl.taiga.ColdTaigaBiome Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.level.biome.impl.taiga;

import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;
import cn.nukkit.level.generator.populator.impl.WaterIcePopulator;

/**
 * @author DaPorkchop_ (Nukkit Project)
 */
public class ColdTaigaBiome extends TaigaBiome {
    public ColdTaigaBiome() {
        super();

        WaterIcePopulator ice = new WaterIcePopulator();
        this.addPopulator(ice);

        this.setBaseHeight(0.2f);
        this.setHeightVariation(0.2f);
    }

    @Override
    public String getName() {
        return "Cold Taiga";
    }

    @Since("1.4.0.0-PN")
    @PowerNukkitOnly
    @Override
    public int getCoverBlock() {
        if (useNewRakNetCover()) {
            return getCoverId(0, 0) >> 4;
        }
        return SNOW_LAYER;
    }

    @Override
    public boolean isFreezing() {
        return true;
    }

    @Override
    public boolean canRain() {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy