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

cn.nukkit.level.biome.impl.mesa.MesaPlateauFBiome Maven / Gradle / Ivy

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

import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;
import cn.nukkit.block.BlockSapling;
import cn.nukkit.level.generator.populator.impl.PopulatorTree;

/**
 * @author DaPorkchop_
 */
public class MesaPlateauFBiome extends MesaPlateauBiome {
    public MesaPlateauFBiome() {
        super();

        PopulatorTree tree = new PopulatorTree(BlockSapling.OAK);
        tree.setBaseAmount(2);
        tree.setRandomAmount(1);
        this.addPopulator(tree);
    }

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

    @Override
    public String getName() {
        return "Mesa Plateau F";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy