A library to provide terrain generation, supports only 1.14+ for now
The whole exposed API holds in TerrainGenerator, calling specific things on SurfaceGenerator or lower model is not recommended
package kaptainwutax.terrainutils;
import kaptainwutax.biomeutils.source.BiomeSource;
import kaptainwutax.mcutils.block.Block;
import kaptainwutax.mcutils.state.Dimension;
import kaptainwutax.mcutils.version.MCVersion;
public class Main {
public static void main(String[] args) {
long worldSeed=1L;
MCVersion version=MCVersion.v1_16_5;
Dimension dimension=Dimension.OVERWORLD;
BiomeSource biomeSource=BiomeSource.of(dimension, version,worldSeed);
TerrainGenerator terrainGenerator= TerrainGenerator.of(biomeSource);
assert terrainGenerator != null;
Block block=terrainGenerator.getBlockAt(0,0,0);
Block[] column=terrainGenerator.getColumnAt(0,0);
int surfaceGenHeight=terrainGenerator.getFirstHeightInColumn(0,0, TerrainGenerator.WORLD_SURFACE_WG);
int oceanGenHeight=terrainGenerator.getFirstHeightInColumn(0,0, TerrainGenerator.OCEAN_FLOOR_WG);
int surfaceBlockIn=terrainGenerator.getHeightInGround(0,0);
int surfaceBlockAbove=terrainGenerator.getHeightOnGround(0,0);
}
}
Licensed under MIT
Maintained by Neil and KaptainWutax.
NOT OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.