public interface BiomeApi
| Modifier and Type | Field and Description |
|---|---|
static BiomeApi |
INSTANCE
The
BiomeApi service. |
| Modifier and Type | Method and Description |
|---|---|
void |
fillWithBiome(net.minecraft.world.chunk.Chunk chunk,
int biomeId)
Fills the entire chunk with a single biome.
|
BiomeAccessor |
getBiomeAccessor(net.minecraft.world.chunk.Chunk chunk)
Returns a
BiomeAccessor from the specified chunk, used to read biomes. |
int |
getIdentityMask()
Returns the value that serves as an identity mask for the maximum number of biomes RoughlyEnoughIDs supports.
|
int |
getMaxBiomeId()
Returns the maximum biome id supported by RoughlyEnoughIDs.
|
void |
replaceBiomes(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.world.biome.Biome[] biomes)
Updates all biomes in the specified chunk.
|
void |
replaceBiomes(net.minecraft.world.chunk.Chunk chunk,
int[] biomeIds)
Updates all biomes in the specified chunk.
|
void |
updateBiome(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
int biomeId)
Updates a biome at a single position within the specified chunk.
|
BiomeAccessor getBiomeAccessor(net.minecraft.world.chunk.Chunk chunk)
BiomeAccessor from the specified chunk, used to read biomes.chunk - the chunkBiomeAccessor of the chunkvoid updateBiome(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.util.math.BlockPos pos,
int biomeId)
chunk - the chunkpos - the position of the biome to changebiomeId - the id of the biomejava.lang.IllegalArgumentException - if pos is not within the chunkvoid replaceBiomes(net.minecraft.world.chunk.Chunk chunk,
int[] biomeIds)
chunk - the chunkbiomeIds - an array of biome ids to replace the chunk's array with.java.lang.IllegalArgumentException - if biomeIds does not match the length of the chunk's arrayvoid replaceBiomes(net.minecraft.world.chunk.Chunk chunk,
net.minecraft.world.biome.Biome[] biomes)
chunk - the chunkbiomes - an array of biomes to replace the chunk's array withjava.lang.IllegalArgumentException - if biomes does not match the length of the chunk's arrayvoid fillWithBiome(net.minecraft.world.chunk.Chunk chunk,
int biomeId)
chunk - the chunkbiomeId - the id of the biome to fill the chunk with.int getIdentityMask()
GenLayer masking.int getMaxBiomeId()