Class BiomeProvider

java.lang.Object
net.minecraft.world.biome.provider.BiomeProvider
All Implemented Interfaces:
BiomeManager.IBiomeReader
Direct Known Subclasses:
CheckerboardBiomeProvider, EndBiomeProvider, NetherBiomeProvider, OverworldBiomeProvider, SingleBiomeProvider

public abstract class BiomeProvider extends Object implements BiomeManager.IBiomeReader
  • Field Details

    • CODEC

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

      protected final Map<Structure<?>,Boolean> supportedStructures
    • surfaceBlocks

      protected final Set<BlockState> surfaceBlocks
    • possibleBiomes

      protected final List<Biome> possibleBiomes
  • Constructor Details

    • BiomeProvider

      protected BiomeProvider(Stream<Supplier<Biome>> p_i241937_1_)
    • BiomeProvider

      protected BiomeProvider(List<Biome> p_i231634_1_)
  • Method Details

    • codec

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

      public abstract BiomeProvider withSeed(long p_230320_1_)
    • possibleBiomes

      public List<Biome> possibleBiomes()
    • getBiomesWithin

      public Set<Biome> getBiomesWithin(int p_225530_1_, int p_225530_2_, int p_225530_3_, int p_225530_4_)
    • findBiomeHorizontal

      @Nullable public BlockPos findBiomeHorizontal(int p_225531_1_, int p_225531_2_, int p_225531_3_, int p_225531_4_, Predicate<Biome> p_225531_5_, Random p_225531_6_)
    • findBiomeHorizontal

      @Nullable public BlockPos findBiomeHorizontal(int p_230321_1_, int p_230321_2_, int p_230321_3_, int p_230321_4_, int p_230321_5_, Predicate<Biome> p_230321_6_, Random p_230321_7_, boolean p_230321_8_)
    • canGenerateStructure

      public boolean canGenerateStructure(Structure<?> p_205004_1_)
    • getSurfaceBlocks

      public Set<BlockState> getSurfaceBlocks()