Package vazkii.botania.common.world
Class SkyblockChunkGenerator
java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
vazkii.botania.common.world.SkyblockChunkGenerator
public class SkyblockChunkGenerator
extends net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SkyblockChunkGenerator> Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator
biomeSource -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyBiomeDecoration(@NotNull net.minecraft.world.level.WorldGenLevel level, @NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull net.minecraft.world.level.StructureManager structureManager) voidapplyCarvers(@NotNull net.minecraft.server.level.WorldGenRegion worldGenRegion, long seed, @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull net.minecraft.world.level.biome.BiomeManager biomeManager, @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull net.minecraft.world.level.levelgen.GenerationStep.Carving carving) voidbuildSurface(@NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull net.minecraft.world.level.levelgen.WorldGenerationContext context, @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull net.minecraft.world.level.biome.BiomeManager biomeManager, @NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomes, @NotNull net.minecraft.world.level.levelgen.blending.Blender blender) protected @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()@NotNull CompletableFuture<net.minecraft.world.level.chunk.ChunkAccess> fillFromNoise(@NotNull net.minecraft.world.level.levelgen.blending.Blender blender, @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull net.minecraft.world.level.chunk.ChunkAccess chunk) intgetBaseHeightInEquivalentNoiseWorld(int x, int z, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.world.level.WorldGenLevel level) Calculates the height at a particular location as it would be in a world with the same seed that isn't empty.static booleanisWorldSkyblock(net.minecraft.world.level.Level world) voidspawnOriginalMobs(@NotNull net.minecraft.server.level.WorldGenRegion region) static voidsubmitRegistration(BiConsumer<com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator>, net.minecraft.resources.ResourceLocation> consumer) Methods inherited from class net.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
addDebugScreenInfo, buildSurface, createBiomes, generatorSettings, getBaseColumn, getBaseHeight, getGenDepth, getMinY, getSeaLevel, stableMethods inherited from class net.minecraft.world.level.chunk.ChunkGenerator
createReferences, createState, createStructures, findNearestMapStructure, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getMobsAt, getSpawnHeight, getTypeNameForDataFixer, validate
-
Field Details
-
CODEC
-
-
Method Details
-
submitRegistration
public static void submitRegistration(BiConsumer<com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator>, net.minecraft.resources.ResourceLocation> consumer) -
isWorldSkyblock
public static boolean isWorldSkyblock(net.minecraft.world.level.Level world) -
codec
@NotNull protected @NotNull com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()- Overrides:
codecin classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
buildSurface
public void buildSurface(@NotNull @NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull @NotNull net.minecraft.world.level.levelgen.WorldGenerationContext context, @NotNull @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull @NotNull net.minecraft.world.level.biome.BiomeManager biomeManager, @NotNull @NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomes, @NotNull @NotNull net.minecraft.world.level.levelgen.blending.Blender blender) - Overrides:
buildSurfacein classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
applyCarvers
public void applyCarvers(@NotNull @NotNull net.minecraft.server.level.WorldGenRegion worldGenRegion, long seed, @NotNull @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull @NotNull net.minecraft.world.level.biome.BiomeManager biomeManager, @NotNull @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull net.minecraft.world.level.levelgen.GenerationStep.Carving carving) - Overrides:
applyCarversin classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
fillFromNoise
@NotNull public @NotNull CompletableFuture<net.minecraft.world.level.chunk.ChunkAccess> fillFromNoise(@NotNull @NotNull net.minecraft.world.level.levelgen.blending.Blender blender, @NotNull @NotNull net.minecraft.world.level.levelgen.RandomState randomState, @NotNull @NotNull net.minecraft.world.level.StructureManager structureManager, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkAccess chunk) - Overrides:
fillFromNoisein classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
spawnOriginalMobs
public void spawnOriginalMobs(@NotNull @NotNull net.minecraft.server.level.WorldGenRegion region) - Overrides:
spawnOriginalMobsin classnet.minecraft.world.level.levelgen.NoiseBasedChunkGenerator
-
applyBiomeDecoration
public void applyBiomeDecoration(@NotNull @NotNull net.minecraft.world.level.WorldGenLevel level, @NotNull @NotNull net.minecraft.world.level.chunk.ChunkAccess chunkAccess, @NotNull @NotNull net.minecraft.world.level.StructureManager structureManager) - Overrides:
applyBiomeDecorationin classnet.minecraft.world.level.chunk.ChunkGenerator
-
getBaseHeightInEquivalentNoiseWorld
public int getBaseHeightInEquivalentNoiseWorld(int x, int z, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.world.level.WorldGenLevel level) Calculates the height at a particular location as it would be in a world with the same seed that isn't empty. (Based on code from CarpetSkyAdditions.)
-