public interface InputExtent
Modifier and Type | Method and Description |
---|---|
BaseBiome |
getBiome(Vector2D position)
Get the biome at the given location.
|
BlockState |
getBlock(Vector position)
Get a snapshot of the block at the given location.
|
BaseBlock |
getFullBlock(Vector position)
Get a immutable snapshot of the block at the given location.
|
BlockState getBlock(Vector 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(Vector position)
position
- position of the block