public interface InputExtent
Modifier and Type | Method and Description |
---|---|
default BiomeType |
getBiome(BlockVector2 position)
Deprecated.
Biomes in Minecraft are 3D now, use
getBiome(BlockVector3) |
default BiomeType |
getBiome(BlockVector3 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 block@Deprecated default BiomeType getBiome(BlockVector2 position)
getBiome(BlockVector3)
If there is no biome available, then the ocean biome should be returned.
position
- the (x, z) location to check the biome at@NonAbstractForCompatibility(delegateName="getBiome", delegateParams=BlockVector2.class) default BiomeType getBiome(BlockVector3 position)
If there is no biome available, then the ocean biome should be returned.
As implementation varies per Minecraft version, this may not exactly get this positions biome. On versions prior to 1.15, this will get the entire column. On later versions it will get the 4x4x4 cube's biome.
position
- the (x, y, z) location to check the biome atNonAbstractForCompatibility
for details