From 2fcfd695f920997e2bff21641ad082390bd83326 Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Mon, 6 Dec 2021 08:15:40 +0300 Subject: [PATCH] Javadocs --- src/main/java/ru/bclib/api/biomes/BiomeAPI.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/ru/bclib/api/biomes/BiomeAPI.java b/src/main/java/ru/bclib/api/biomes/BiomeAPI.java index 5b188007..4fd84aef 100644 --- a/src/main/java/ru/bclib/api/biomes/BiomeAPI.java +++ b/src/main/java/ru/bclib/api/biomes/BiomeAPI.java @@ -672,6 +672,13 @@ public class BiomeAPI { accessor.bcl_setSpawners(spawners); } + /** + * Get biome surface block. Can be used to get terrain material for features or other things. + * @param pos {@link BlockPos} position to get block. + * @param biome {@link Biome} to get block from. + * @param level {@link ServerLevel} current server level. + * @return {@link BlockState} with the biome surface or AIR if it fails. + */ public static BlockState getBiomeSurfaceBlock(BlockPos pos, Biome biome, ServerLevel level) { ChunkGenerator generator = level.getChunkSource().getGenerator(); if (generator instanceof NoiseBasedChunkGenerator) {