public abstract class BiomeSource extends Object implements BiomeAccess.Storage
Modifier and Type | Field and Description |
---|---|
protected List<Biome> |
biomes |
static com.mojang.serialization.Codec<BiomeSource> |
CODEC |
protected Map<StructureFeature<?>,Boolean> |
structureFeatures |
protected Set<BlockState> |
topMaterials |
Modifier | Constructor and Description |
---|---|
protected |
BiomeSource(List<Biome> biomes) |
protected |
BiomeSource(Stream<Supplier<Biome>> stream) |
Modifier and Type | Method and Description |
---|---|
List<Biome> |
getBiomes() |
Set<Biome> |
getBiomesInArea(int x,
int y,
int z,
int radius) |
protected abstract com.mojang.serialization.Codec<? extends BiomeSource> |
getCodec() |
Set<BlockState> |
getTopMaterials() |
boolean |
hasStructureFeature(StructureFeature<?> feature) |
BlockPos |
locateBiome(int x,
int y,
int z,
int radius,
int int2,
Predicate<Biome> predicate,
Random random,
boolean bool) |
BlockPos |
locateBiome(int x,
int y,
int z,
int radius,
Predicate<Biome> predicate,
Random random) |
abstract BiomeSource |
withSeed(long seed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBiomeForNoiseGen
public static final com.mojang.serialization.Codec<BiomeSource> CODEC
protected final Map<StructureFeature<?>,Boolean> structureFeatures
protected final Set<BlockState> topMaterials
protected abstract com.mojang.serialization.Codec<? extends BiomeSource> getCodec()
@Environment(value=CLIENT) public abstract BiomeSource withSeed(long seed)
@Nullable public BlockPos locateBiome(int x, int y, int z, int radius, Predicate<Biome> predicate, Random random)
@Nullable public BlockPos locateBiome(int x, int y, int z, int radius, int int2, Predicate<Biome> predicate, Random random, boolean bool)
public boolean hasStructureFeature(StructureFeature<?> feature)
public Set<BlockState> getTopMaterials()