net.minestom.server.instance.heightmap.WorldSurfaceHeightmap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.instance.heightmap;
import net.minestom.server.instance.Chunk;
import net.minestom.server.instance.block.Block;
import org.jetbrains.annotations.NotNull;
public class WorldSurfaceHeightmap extends Heightmap {
public WorldSurfaceHeightmap(Chunk attachedChunk) {
super(attachedChunk);
}
@Override
protected boolean checkBlock(@NotNull Block block) {
return !block.isAir();
}
@Override
public String NBTName() {
return "WORLD_SURFACE";
}
}