Class VoidChunkGenerator

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

public class VoidChunkGenerator extends net.minecraft.world.level.chunk.ChunkGenerator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<VoidChunkGenerator>
     
    static final net.minecraft.world.level.biome.Climate.Sampler
     
    static final net.minecraft.world.level.levelgen.DensityFunction
     

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

    biomeSource
  • Constructor Summary

    Constructors
    Constructor
    Description
    VoidChunkGenerator(Supplier<net.minecraft.world.level.biome.Biome> biome)
    Deprecated.
    VoidChunkGenerator(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
     
    VoidChunkGenerator(net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
     
    VoidChunkGenerator(net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
     
    VoidChunkGenerator(net.minecraft.server.MinecraftServer server)
     
    VoidChunkGenerator(net.minecraft.server.MinecraftServer server, net.minecraft.resources.Identifier biome)
     
    VoidChunkGenerator(net.minecraft.server.MinecraftServer server, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDebugScreenInfo(List<String> text, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.core.BlockPos pos)
     
    void
    applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.chunk.ChunkAccess chunk, net.minecraft.world.level.StructureManager structureAccessor)
     
    void
    applyCarvers(net.minecraft.server.level.WorldGenRegion chunkRegion, long seed, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.biome.BiomeManager world, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
     
    void
    buildSurface(net.minecraft.server.level.WorldGenRegion region, net.minecraft.world.level.StructureManager structures, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.chunk.ChunkAccess chunk)
     
    protected com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.chunk.ChunkGenerator>
     
    void
    createReferences(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.StructureManager accessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
     
    net.minecraft.world.level.chunk.ChunkGeneratorStructureState
    createState(net.minecraft.core.HolderLookup<net.minecraft.world.level.levelgen.structure.StructureSet> structureSetRegistry, net.minecraft.world.level.levelgen.RandomState noiseConfig, long seed)
     
    void
    createStructures(net.minecraft.core.RegistryAccess registryManager, net.minecraft.world.level.chunk.ChunkGeneratorStructureState placementCalculator, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager structureTemplateManager, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
     
    CompletableFuture<net.minecraft.world.level.chunk.ChunkAccess>
    fillFromNoise(net.minecraft.world.level.levelgen.blending.Blender blender, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
     
    @Nullable com.mojang.datafixers.util.Pair<net.minecraft.core.BlockPos, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.Structure>>
    findNearestMapStructure(net.minecraft.server.level.ServerLevel world, net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.structure.Structure> structures, net.minecraft.core.BlockPos center, int radius, boolean skipReferencedStructures)
     
    net.minecraft.world.level.NoiseColumn
    getBaseColumn(int x, int z, net.minecraft.world.level.LevelHeightAccessor world, net.minecraft.world.level.levelgen.RandomState noiseConfig)
     
    int
    getBaseHeight(int x, int z, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.world.level.LevelHeightAccessor world, net.minecraft.world.level.levelgen.RandomState noiseConfig)
     
    protected net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
     
    int
     
    int
     
    net.minecraft.util.random.WeightedList<net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData>
    getMobsAt(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome, net.minecraft.world.level.StructureManager accessor, net.minecraft.world.entity.MobCategory group, net.minecraft.core.BlockPos pos)
     
    int
     
    void
    spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion region)
     

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

    createBiomes, getBiomeGenerationSettings, getBiomeSource, getFirstFreeHeight, getFirstOccupiedHeight, getSpawnHeight, getTypeNameForDataFixer, refreshFeaturesPerStep, 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<VoidChunkGenerator> CODEC
    • ZERO_DENSITY_FUNCTION

      public static final net.minecraft.world.level.levelgen.DensityFunction ZERO_DENSITY_FUNCTION
    • EMPTY_SAMPLER

      public static final net.minecraft.world.level.biome.Climate.Sampler EMPTY_SAMPLER
  • Constructor Details

    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
    • VoidChunkGenerator

      @Deprecated public VoidChunkGenerator(Supplier<net.minecraft.world.level.biome.Biome> biome)
      Deprecated.
    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.server.MinecraftServer server)
    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.server.MinecraftServer server, net.minecraft.resources.Identifier biome)
    • VoidChunkGenerator

      public VoidChunkGenerator(net.minecraft.server.MinecraftServer server, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome> biome)
  • Method Details

    • codec

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

      protected net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getBiome()
    • applyCarvers

      public void applyCarvers(net.minecraft.server.level.WorldGenRegion chunkRegion, long seed, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.biome.BiomeManager world, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
      Specified by:
      applyCarvers in class net.minecraft.world.level.chunk.ChunkGenerator
    • createReferences

      public void createReferences(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.StructureManager accessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
      Overrides:
      createReferences in class net.minecraft.world.level.chunk.ChunkGenerator
    • fillFromNoise

      public CompletableFuture<net.minecraft.world.level.chunk.ChunkAccess> fillFromNoise(net.minecraft.world.level.levelgen.blending.Blender blender, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk)
      Specified by:
      fillFromNoise in class net.minecraft.world.level.chunk.ChunkGenerator
    • getSeaLevel

      public int getSeaLevel()
      Specified by:
      getSeaLevel in class net.minecraft.world.level.chunk.ChunkGenerator
    • getMinY

      public int getMinY()
      Specified by:
      getMinY in class net.minecraft.world.level.chunk.ChunkGenerator
    • getBaseHeight

      public int getBaseHeight(int x, int z, net.minecraft.world.level.levelgen.Heightmap.Types heightmap, net.minecraft.world.level.LevelHeightAccessor world, net.minecraft.world.level.levelgen.RandomState noiseConfig)
      Specified by:
      getBaseHeight in class net.minecraft.world.level.chunk.ChunkGenerator
    • getBaseColumn

      public net.minecraft.world.level.NoiseColumn getBaseColumn(int x, int z, net.minecraft.world.level.LevelHeightAccessor world, net.minecraft.world.level.levelgen.RandomState noiseConfig)
      Specified by:
      getBaseColumn in class net.minecraft.world.level.chunk.ChunkGenerator
    • addDebugScreenInfo

      public void addDebugScreenInfo(List<String> text, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.core.BlockPos pos)
      Specified by:
      addDebugScreenInfo in class net.minecraft.world.level.chunk.ChunkGenerator
    • applyBiomeDecoration

      public void applyBiomeDecoration(net.minecraft.world.level.WorldGenLevel world, net.minecraft.world.level.chunk.ChunkAccess chunk, net.minecraft.world.level.StructureManager structureAccessor)
      Overrides:
      applyBiomeDecoration in class net.minecraft.world.level.chunk.ChunkGenerator
    • buildSurface

      public void buildSurface(net.minecraft.server.level.WorldGenRegion region, net.minecraft.world.level.StructureManager structures, net.minecraft.world.level.levelgen.RandomState noiseConfig, net.minecraft.world.level.chunk.ChunkAccess chunk)
      Specified by:
      buildSurface in class net.minecraft.world.level.chunk.ChunkGenerator
    • spawnOriginalMobs

      public void spawnOriginalMobs(net.minecraft.server.level.WorldGenRegion region)
      Specified by:
      spawnOriginalMobs in class net.minecraft.world.level.chunk.ChunkGenerator
    • getGenDepth

      public int getGenDepth()
      Specified by:
      getGenDepth in class net.minecraft.world.level.chunk.ChunkGenerator
    • findNearestMapStructure

      @Nullable public @Nullable com.mojang.datafixers.util.Pair<net.minecraft.core.BlockPos, net.minecraft.core.Holder<net.minecraft.world.level.levelgen.structure.Structure>> findNearestMapStructure(net.minecraft.server.level.ServerLevel world, net.minecraft.core.HolderSet<net.minecraft.world.level.levelgen.structure.Structure> structures, net.minecraft.core.BlockPos center, int radius, boolean skipReferencedStructures)
      Overrides:
      findNearestMapStructure in class net.minecraft.world.level.chunk.ChunkGenerator
    • getMobsAt

      public net.minecraft.util.random.WeightedList<net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData> getMobsAt(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome, net.minecraft.world.level.StructureManager accessor, net.minecraft.world.entity.MobCategory group, net.minecraft.core.BlockPos pos)
      Overrides:
      getMobsAt in class net.minecraft.world.level.chunk.ChunkGenerator
    • createStructures

      public void createStructures(net.minecraft.core.RegistryAccess registryManager, net.minecraft.world.level.chunk.ChunkGeneratorStructureState placementCalculator, net.minecraft.world.level.StructureManager structureAccessor, net.minecraft.world.level.chunk.ChunkAccess chunk, net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager structureTemplateManager, net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      Overrides:
      createStructures in class net.minecraft.world.level.chunk.ChunkGenerator
    • createState

      public net.minecraft.world.level.chunk.ChunkGeneratorStructureState createState(net.minecraft.core.HolderLookup<net.minecraft.world.level.levelgen.structure.StructureSet> structureSetRegistry, net.minecraft.world.level.levelgen.RandomState noiseConfig, long seed)
      Overrides:
      createState in class net.minecraft.world.level.chunk.ChunkGenerator