cn.nukkit.level.generator.populator.helper.EnsureCover Maven / Gradle / Ivy
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