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

cn.nukkit.level.generator.populator.helper.EnsureCover Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.level.generator.populator.helper;

import cn.nukkit.level.format.FullChunk;

import static cn.nukkit.block.BlockID.*;

/**
 * @author DaPorkchop_
 */
public interface EnsureCover {
    static boolean ensureCover(int x, int y, int z, FullChunk chunk) {
        int id = chunk.getBlockId(x, y, z);
        return id == AIR || id == SNOW_LAYER || id == TALL_GRASS;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy