Class TransientChunkGenerator

java.lang.Object
net.minecraft.world.level.chunk.ChunkGenerator
de.luckymcdev.foundryengine.common.world.level.util.TransientChunkGenerator

public abstract class TransientChunkGenerator extends net.minecraft.world.level.chunk.ChunkGenerator
A ChunkGenerator instance that does not know how to be, and does not care to be serialized. This is particularly useful when creating a temporary level.

If serialized, however, it will be loaded as a void level.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator>
     

    Fields inherited from class net.minecraft.world.level.chunk.ChunkGenerator

    biomeSource
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransientChunkGenerator(net.minecraft.world.level.biome.BiomeSource biomeSource)
     
    TransientChunkGenerator(net.minecraft.world.level.biome.BiomeSource biomeSource, Function<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>, net.minecraft.world.level.biome.BiomeGenerationSettings> generationSettingsGetter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator>
     

    Methods inherited from class net.minecraft.world.level.chunk.ChunkGenerator

    addDebugScreenInfo, applyBiomeDecoration, applyCarvers, buildSurface, createBiomes, createReferences, createState, createStructures, fillFromNoise, findNearestMapStructure, getBaseColumn, getBaseHeight, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getGenDepth, getMinY, getMobsAt, getSeaLevel, getSpawnHeight, getTypeNameForDataFixer, refreshFeaturesPerStep, spawnOriginalMobs, validate

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> CODEC
  • Constructor Details

    • TransientChunkGenerator

      public TransientChunkGenerator(net.minecraft.world.level.biome.BiomeSource biomeSource)
    • TransientChunkGenerator

      public TransientChunkGenerator(net.minecraft.world.level.biome.BiomeSource biomeSource, Function<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>, net.minecraft.world.level.biome.BiomeGenerationSettings> generationSettingsGetter)
  • Method Details

    • codec

      protected final com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator> codec()
      Specified by:
      codec in class net.minecraft.world.level.chunk.ChunkGenerator