Class FixedBiomeSource
java.lang.Object
net.minecraft.world.level.biome.BiomeSource
net.minecraft.world.level.biome.FixedBiomeSource
- All Implemented Interfaces:
BiomeManager.NoiseBiomeSource, BiomeResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FixedBiomeSource> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mojang.serialization.MapCodec<? extends BiomeSource> codec()findBiomeHorizontal(int originX, int originY, int originZ, int r, int skipStep, Predicate<Holder<Biome>> allowed, RandomSource random, boolean findClosest, Climate.Sampler sampler) findClosestBiome3d(BlockPos origin, int searchRadius, int sampleResolutionHorizontal, int sampleResolutionVertical, Predicate<Holder<Biome>> allowed, Climate.Sampler sampler, LevelReader level) getBiomesWithin(int x, int y, int z, int r, Climate.Sampler sampler) getNoiseBiome(int quartX, int quartY, int quartZ) Gets the biome at the given quart positions.getNoiseBiome(int quartX, int quartY, int quartZ, Climate.Sampler sampler) Methods inherited from class BiomeSource
addDebugInfo, findBiomeHorizontal, possibleBiomes
-
Field Details
-
CODEC
-
biome
-
-
Constructor Details
-
FixedBiomeSource
-
-
Method Details
-
collectPossibleBiomes
- Specified by:
collectPossibleBiomesin classBiomeSource
-
codec
- Specified by:
codecin classBiomeSource
-
getNoiseBiome
- Specified by:
getNoiseBiomein interfaceBiomeResolver- Specified by:
getNoiseBiomein classBiomeSource
-
getNoiseBiome
Description copied from interface:BiomeManager.NoiseBiomeSourceGets the biome at the given quart positions. Note that the coordinates passed into this method are 1/4 the scale of block coordinates.- Specified by:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource
-
findBiomeHorizontal
public @Nullable com.mojang.datafixers.util.Pair<BlockPos, Holder<Biome>> findBiomeHorizontal(int originX, int originY, int originZ, int r, int skipStep, Predicate<Holder<Biome>> allowed, RandomSource random, boolean findClosest, Climate.Sampler sampler) - Overrides:
findBiomeHorizontalin classBiomeSource
-
findClosestBiome3d
public @Nullable com.mojang.datafixers.util.Pair<BlockPos, Holder<Biome>> findClosestBiome3d(BlockPos origin, int searchRadius, int sampleResolutionHorizontal, int sampleResolutionVertical, Predicate<Holder<Biome>> allowed, Climate.Sampler sampler, LevelReader level) - Overrides:
findClosestBiome3din classBiomeSource
-
getBiomesWithin
- Overrides:
getBiomesWithinin classBiomeSource
-