Class LayeredBiomeSource
java.lang.Object
net.minecraft.world.level.biome.BiomeSource
org.moddingx.libx.sandbox.generator.LayeredBiomeSource
- All Implemented Interfaces:
net.minecraft.world.level.biome.BiomeResolver
public class LayeredBiomeSource
extends net.minecraft.world.level.biome.BiomeSource
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLayeredBiomeSource
(net.minecraft.core.HolderSet<BiomeLayer> layers) Creates a newLayeredBiomeSource
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugInfo
(List<String> lines, net.minecraft.core.BlockPos pos, net.minecraft.world.level.biome.Climate.Sampler sampler) protected com.mojang.serialization.Codec<? extends net.minecraft.world.level.biome.BiomeSource>
codec()
protected Stream<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>>
net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>
getNoiseBiome
(int x, int y, int z, net.minecraft.world.level.biome.Climate.Sampler sampler) void
init
(long seed) Methods inherited from class net.minecraft.world.level.biome.BiomeSource
findBiomeHorizontal, findBiomeHorizontal, findClosestBiome3d, getBiomesWithin, possibleBiomes
-
Field Details
-
CODEC
-
-
Constructor Details
-
LayeredBiomeSource
Creates a newLayeredBiomeSource
.- Parameters:
layers
- The layers to use.
-
-
Method Details
-
collectPossibleBiomes
@Nonnull protected Stream<net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome>> collectPossibleBiomes()- Specified by:
collectPossibleBiomes
in classnet.minecraft.world.level.biome.BiomeSource
-
init
public void init(long seed) -
codec
@Nonnull protected com.mojang.serialization.Codec<? extends net.minecraft.world.level.biome.BiomeSource> codec()- Specified by:
codec
in classnet.minecraft.world.level.biome.BiomeSource
-
getNoiseBiome
@Nonnull public net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> getNoiseBiome(int x, int y, int z, @Nonnull net.minecraft.world.level.biome.Climate.Sampler sampler) - Specified by:
getNoiseBiome
in interfacenet.minecraft.world.level.biome.BiomeResolver
- Specified by:
getNoiseBiome
in classnet.minecraft.world.level.biome.BiomeSource
-
addDebugInfo
public void addDebugInfo(List<String> lines, net.minecraft.core.BlockPos pos, net.minecraft.world.level.biome.Climate.Sampler sampler) - Overrides:
addDebugInfo
in classnet.minecraft.world.level.biome.BiomeSource
-