public interface BiomeAccessor
| Modifier and Type | Method and Description |
|---|---|
int |
getBiomeId(net.minecraft.util.math.BlockPos pos)
Returns the biome id at the specified block position.
|
int |
getBiomeId(int chunkLocalX,
int chunkLocalZ)
Returns the biome id at the specified position, relative to the chunk.
|
int[] |
getBiomes()
Returns a copy of the biomes in this chunk.
|
net.minecraft.world.chunk.Chunk |
getChunk()
Returns the chunk containing these biomes.
|
int |
size()
Returns the number of biomes in this chunk.
|
int size()
net.minecraft.world.chunk.Chunk getChunk()
int[] getBiomes()
int getBiomeId(net.minecraft.util.math.BlockPos pos)
pos - the BlockPos within this chunkjava.lang.IllegalArgumentException - if pos is not within the chunkint getBiomeId(int chunkLocalX,
int chunkLocalZ)
chunkLocalX - the x position, relative to the chunk (0-15)chunkLocalZ - the z position, relative to the chunk (0-15)java.lang.IllegalArgumentException - if relativeX or relativeZ is not a value within 0 to 15
(a position relative to the chunk)