Class SingleBiomeProvider
- java.lang.Object
-
- net.minecraft.world.biome.provider.BiomeProvider
-
- net.minecraft.world.biome.provider.SingleBiomeProvider
-
- All Implemented Interfaces:
BiomeManager.IBiomeReader
public class SingleBiomeProvider extends BiomeProvider
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<Biome>
biome
static com.mojang.serialization.Codec<SingleBiomeProvider>
CODEC
-
Fields inherited from class net.minecraft.world.biome.provider.BiomeProvider
possibleBiomes, supportedStructures, surfaceBlocks
-
-
Constructor Summary
Constructors Constructor Description SingleBiomeProvider(java.util.function.Supplier<Biome> p_i241945_1_)
SingleBiomeProvider(Biome p_i46709_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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_)
java.util.Set<Biome>
getBiomesWithin(int p_225530_1_, int p_225530_2_, int p_225530_3_, int p_225530_4_)
Biome
getNoiseBiome(int p_225526_1_, int p_225526_2_, int p_225526_3_)
BiomeProvider
withSeed(long p_230320_1_)
-
Methods inherited from class net.minecraft.world.biome.provider.BiomeProvider
canGenerateStructure, findBiomeHorizontal, getSurfaceBlocks, possibleBiomes
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<SingleBiomeProvider> CODEC
-
biome
private final java.util.function.Supplier<Biome> biome
-
-
Method Detail
-
codec
protected com.mojang.serialization.Codec<? extends BiomeProvider> codec()
- Specified by:
codec
in classBiomeProvider
-
withSeed
public BiomeProvider withSeed(long p_230320_1_)
- Specified by:
withSeed
in classBiomeProvider
-
getNoiseBiome
public Biome getNoiseBiome(int p_225526_1_, int p_225526_2_, int p_225526_3_)
-
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_)
- Overrides:
findBiomeHorizontal
in classBiomeProvider
-
getBiomesWithin
public java.util.Set<Biome> getBiomesWithin(int p_225530_1_, int p_225530_2_, int p_225530_3_, int p_225530_4_)
- Overrides:
getBiomesWithin
in classBiomeProvider
-
-