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 java.lang.Object implements BiomeManager.IBiomeReader
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<BiomeProvider>
CODEC
protected java.util.List<Biome>
possibleBiomes
protected java.util.Map<Structure<?>,java.lang.Boolean>
supportedStructures
protected java.util.Set<BlockState>
surfaceBlocks
-
Constructor Summary
Constructors Modifier Constructor Description protected
BiomeProvider(java.util.List<Biome> p_i231634_1_)
protected
BiomeProvider(java.util.stream.Stream<java.util.function.Supplier<Biome>> p_i241937_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateStructure(Structure<?> p_205004_1_)
protected abstract com.mojang.serialization.Codec<? extends BiomeProvider>
codec()
BlockPos
findBiomeHorizontal(int p_230321_1_, int p_230321_2_, int p_230321_3_, int p_230321_4_, int p_230321_5_, java.util.function.Predicate<Biome> p_230321_6_, java.util.Random p_230321_7_, boolean p_230321_8_)
BlockPos
findBiomeHorizontal(int p_225531_1_, int p_225531_2_, int p_225531_3_, int p_225531_4_, java.util.function.Predicate<Biome> p_225531_5_, java.util.Random p_225531_6_)
java.util.Set<Biome>
getBiomesWithin(int p_225530_1_, int p_225530_2_, int p_225530_3_, int p_225530_4_)
java.util.Set<BlockState>
getSurfaceBlocks()
java.util.List<Biome>
possibleBiomes()
abstract BiomeProvider
withSeed(long p_230320_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.world.biome.BiomeManager.IBiomeReader
getNoiseBiome
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<BiomeProvider> CODEC
-
supportedStructures
protected final java.util.Map<Structure<?>,java.lang.Boolean> supportedStructures
-
surfaceBlocks
protected final java.util.Set<BlockState> surfaceBlocks
-
possibleBiomes
protected final java.util.List<Biome> possibleBiomes
-
-
Method Detail
-
codec
protected abstract com.mojang.serialization.Codec<? extends BiomeProvider> codec()
-
withSeed
public abstract BiomeProvider withSeed(long p_230320_1_)
-
possibleBiomes
public java.util.List<Biome> possibleBiomes()
-
getBiomesWithin
public java.util.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_, java.util.function.Predicate<Biome> p_225531_5_, java.util.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_, java.util.function.Predicate<Biome> p_230321_6_, java.util.Random p_230321_7_, boolean p_230321_8_)
-
canGenerateStructure
public boolean canGenerateStructure(Structure<?> p_205004_1_)
-
getSurfaceBlocks
public java.util.Set<BlockState> getSurfaceBlocks()
-
-