public final class CustomWorldChunkManager
extends net.minecraft.world.biome.WorldChunkManager
WorldChunkManager
(bad name for the class that is
responsible for where the biomes appear) based on a BiomeGenerator
.
This class does the opposite of SpongeBiomeGenerator
, that class
wraps a world chunk manager so that it is usable as a BiomeGenerator
.
Modifier and Type | Method and Description |
---|---|
boolean |
areBiomesViable(int xCenter,
int zCenter,
int range,
List searchingForBiomes) |
net.minecraft.util.BlockPos |
findBiomePosition(int xCenter,
int zCenter,
int range,
List searchingFor,
Random random) |
net.minecraft.world.biome.BiomeGenBase[] |
getBiomeGenAt(net.minecraft.world.biome.BiomeGenBase[] listToReuse,
int x,
int z,
int width,
int length,
boolean cacheFlag)
Return a list of biomes for the specified blocks.
|
org.spongepowered.api.world.gen.BiomeGenerator |
getBiomeGenerator() |
net.minecraft.world.biome.BiomeGenBase[] |
getBiomesForGeneration(net.minecraft.world.biome.BiomeGenBase[] biomeArrayZoomedOut,
int xStart,
int zStart,
int xSize,
int zSize) |
float[] |
getRainfall(float[] rainfallArray,
int x,
int z,
int xSize,
int zSize) |
net.minecraft.world.biome.BiomeGenBase[] |
loadBlockGeneratorData(net.minecraft.world.biome.BiomeGenBase[] biomeArray,
int startX,
int startZ,
int sizeX,
int sizeZ) |
static net.minecraft.world.biome.WorldChunkManager |
of(org.spongepowered.api.world.gen.BiomeGenerator biomeGenerator)
Gets a world chunk manager based on the given biome generator.
|
public static net.minecraft.world.biome.WorldChunkManager of(org.spongepowered.api.world.gen.BiomeGenerator biomeGenerator)
biomeGenerator
- The biome generator.public org.spongepowered.api.world.gen.BiomeGenerator getBiomeGenerator()
public net.minecraft.world.biome.BiomeGenBase[] getBiomeGenAt(net.minecraft.world.biome.BiomeGenBase[] listToReuse, int x, int z, int width, int length, boolean cacheFlag)
getBiomeGenAt
in class net.minecraft.world.biome.WorldChunkManager
cacheFlag
- If false, don't check biomeCache to avoid infinite loop
in BiomeCacheBlockpublic net.minecraft.world.biome.BiomeGenBase[] getBiomesForGeneration(net.minecraft.world.biome.BiomeGenBase[] biomeArrayZoomedOut, int xStart, int zStart, int xSize, int zSize)
getBiomesForGeneration
in class net.minecraft.world.biome.WorldChunkManager
public float[] getRainfall(float[] rainfallArray, int x, int z, int xSize, int zSize)
getRainfall
in class net.minecraft.world.biome.WorldChunkManager
public net.minecraft.util.BlockPos findBiomePosition(int xCenter, int zCenter, int range, List searchingFor, Random random)
findBiomePosition
in class net.minecraft.world.biome.WorldChunkManager
public boolean areBiomesViable(int xCenter, int zCenter, int range, List searchingForBiomes)
areBiomesViable
in class net.minecraft.world.biome.WorldChunkManager
public net.minecraft.world.biome.BiomeGenBase[] loadBlockGeneratorData(net.minecraft.world.biome.BiomeGenBase[] biomeArray, int startX, int startZ, int sizeX, int sizeZ)
loadBlockGeneratorData
in class net.minecraft.world.biome.WorldChunkManager