public interface InputExtent
Modifier and Type | Method and Description |
---|---|
BiomeType |
getBiome(BlockVector2 position)
Get the biome at the given location.
|
BlockState |
getBlock(BlockVector3 position)
Get a snapshot of the block at the given location.
|
BaseBlock |
getFullBlock(BlockVector3 position)
Get a immutable snapshot of the block at the given location.
|
BlockState getBlock(BlockVector3 position)
If the given position is out of the bounds of the extent, then the behavior
is undefined (an air block could be returned). However, null
should not be returned.
The returned block is immutable and is a snapshot of the block at the time
of call. It has no position attached to it, so it could be reused in
Pattern
s and so on.
position
- position of the blockBaseBlock getFullBlock(BlockVector3 position)
position
- position of the blockBiomeType getBiome(BlockVector2 position)
If there is no biome available, then the ocean biome should be returned.
position
- the (x, z) location to check the biome at