Class LayeredBiomeSource

java.lang.Object
net.minecraft.world.level.biome.BiomeSource
org.moddingx.libx.sandbox.generator.LayeredBiomeSource
All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeResolver

public class LayeredBiomeSource extends net.minecraft.world.level.biome.BiomeSource
A BiomeSource that can generate multiple layers using multiple noise biome sources.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<LayeredBiomeSource>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    LayeredBiomeSource(net.minecraft.core.HolderSet<BiomeLayer> layers)
    Creates a new LayeredBiomeSource.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDebugInfo(List<String> lines, net.minecraft.core.BlockPos pos, net.minecraft.world.level.biome.Climate.Sampler sampler)
     
    protected com.mojang.serialization.Codec<? extends net.minecraft.world.level.biome.BiomeSource>
     
    protected Stream<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>>
     
    net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
    getNoiseBiome(int x, int y, int z, net.minecraft.world.level.biome.Climate.Sampler sampler)
     
    void
    init(long seed)
     

    Methods inherited from class net.minecraft.world.level.biome.BiomeSource

    findBiomeHorizontal, findBiomeHorizontal, findClosestBiome3d, getBiomesWithin, possibleBiomes

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • LayeredBiomeSource

      public LayeredBiomeSource(net.minecraft.core.HolderSet<BiomeLayer> layers)
      Creates a new LayeredBiomeSource.
      Parameters:
      layers - The layers to use.
  • Method Details

    • collectPossibleBiomes

      @Nonnull protected Stream<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>> collectPossibleBiomes()
      Specified by:
      collectPossibleBiomes in class net.minecraft.world.level.biome.BiomeSource
    • init

      public void init(long seed)
    • codec

      @Nonnull protected com.mojang.serialization.Codec<? extends net.minecraft.world.level.biome.BiomeSource> codec()
      Specified by:
      codec in class net.minecraft.world.level.biome.BiomeSource
    • getNoiseBiome

      @Nonnull public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getNoiseBiome(int x, int y, int z, @Nonnull net.minecraft.world.level.biome.Climate.Sampler sampler)
      Specified by:
      getNoiseBiome in interface net.minecraft.world.level.biome.BiomeResolver
      Specified by:
      getNoiseBiome in class net.minecraft.world.level.biome.BiomeSource
    • addDebugInfo

      public void addDebugInfo(List<String> lines, net.minecraft.core.BlockPos pos, net.minecraft.world.level.biome.Climate.Sampler sampler)
      Overrides:
      addDebugInfo in class net.minecraft.world.level.biome.BiomeSource