public class ChunkCache extends java.lang.Object implements IBlockAccess
| Modifier and Type | Field and Description |
|---|---|
protected Chunk[][] |
chunkArray |
protected int |
chunkX |
protected int |
chunkZ |
protected boolean |
hasExtendedLevels
set by !chunk.getAreLevelsEmpty
|
protected World |
worldObj
Reference to the World object.
|
| Constructor and Description |
|---|
ChunkCache(World worldIn,
BlockPos posFromIn,
BlockPos posToIn,
int subIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
extendedLevelsInChunkCache()
set by !chunk.getAreLevelsEmpty
|
BiomeGenBase |
getBiomeGenForCoords(BlockPos pos) |
IBlockState |
getBlockState(BlockPos pos) |
int |
getCombinedLight(BlockPos pos,
int lightValue) |
int |
getLightFor(EnumSkyBlock p_175628_1_,
BlockPos pos) |
private int |
getLightForExt(EnumSkyBlock p_175629_1_,
BlockPos pos) |
int |
getStrongPower(BlockPos pos,
EnumFacing direction) |
TileEntity |
getTileEntity(BlockPos pos) |
WorldType |
getWorldType() |
boolean |
isAirBlock(BlockPos pos)
Checks to see if an air block exists at the provided location.
|
protected int chunkX
protected int chunkZ
protected Chunk[][] chunkArray
protected boolean hasExtendedLevels
protected World worldObj
public boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache in interface IBlockAccesspublic TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockAccesspublic int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight in interface IBlockAccesspublic IBlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockAccesspublic BiomeGenBase getBiomeGenForCoords(BlockPos pos)
getBiomeGenForCoords in interface IBlockAccessprivate int getLightForExt(EnumSkyBlock p_175629_1_, BlockPos pos)
public boolean isAirBlock(BlockPos pos)
isAirBlock in interface IBlockAccesspublic int getLightFor(EnumSkyBlock p_175628_1_, BlockPos pos)
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower in interface IBlockAccesspublic WorldType getWorldType()
getWorldType in interface IBlockAccess