Class BiomeSource

java.lang.Object
net.minecraft.world.level.biome.BiomeSource
All Implemented Interfaces:
BiomeManager.NoiseBiomeSource
Direct Known Subclasses:
CheckerboardColumnBiomeSource, FixedBiomeSource, MultiNoiseBiomeSource, OverworldBiomeSource, TheEndBiomeSource

public abstract class BiomeSource extends Object implements BiomeManager.NoiseBiomeSource
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BiomeSource> CODEC
    • supportedStructures

      protected final Map<StructureFeature<?>,​Boolean> supportedStructures
    • surfaceBlocks

      protected final Set<BlockState> surfaceBlocks
    • possibleBiomes

      protected final List<Biome> possibleBiomes
  • Constructor Details

  • Method Details

    • codec

      protected abstract com.mojang.serialization.Codec<? extends BiomeSource> codec()
    • withSeed

      public abstract BiomeSource withSeed(long p_47916_)
    • possibleBiomes

      public List<Biome> possibleBiomes()
    • getBiomesWithin

      public Set<Biome> getBiomesWithin(int p_47897_, int p_47898_, int p_47899_, int p_47900_)
    • findBiomeHorizontal

      @Nullable public BlockPos findBiomeHorizontal(int p_47910_, int p_47911_, int p_47912_, int p_47913_, Predicate<Biome> p_47914_, Random p_47915_)
    • findBiomeHorizontal

      @Nullable public BlockPos findBiomeHorizontal(int p_47901_, int p_47902_, int p_47903_, int p_47904_, int p_47905_, Predicate<Biome> p_47906_, Random p_47907_, boolean p_47908_)
    • canGenerateStructure

      public boolean canGenerateStructure(StructureFeature<?> p_47918_)
    • getSurfaceBlocks

      public Set<BlockState> getSurfaceBlocks()