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 |
protected World |
worldObj |
Constructor and Description |
---|
ChunkCache(World worldIn,
BlockPos posFromIn,
BlockPos posToIn,
int subIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
extendedLevelsInChunkCache() |
Biome |
getBiomeGenForCoords(BlockPos pos) |
IBlockState |
getBlockState(BlockPos pos) |
int |
getCombinedLight(BlockPos pos,
int lightValue) |
int |
getLightFor(EnumSkyBlock p_175628_1_,
BlockPos pos) |
int |
getStrongPower(BlockPos pos,
EnumFacing direction) |
TileEntity |
getTileEntity(BlockPos pos) |
WorldType |
getWorldType() |
boolean |
isAirBlock(BlockPos pos) |
boolean |
isSideSolid(BlockPos pos,
EnumFacing side,
boolean _default)
FORGE: isSideSolid, pulled up from
World |
protected int chunkX
protected int chunkZ
protected Chunk[][] chunkArray
protected boolean hasExtendedLevels
protected World worldObj
public boolean extendedLevelsInChunkCache()
extendedLevelsInChunkCache
in interface IBlockAccess
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockAccess
public int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight
in interface IBlockAccess
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockAccess
public Biome getBiomeGenForCoords(BlockPos pos)
getBiomeGenForCoords
in interface IBlockAccess
public boolean isAirBlock(BlockPos pos)
isAirBlock
in interface IBlockAccess
public int getLightFor(EnumSkyBlock p_175628_1_, BlockPos pos)
public int getStrongPower(BlockPos pos, EnumFacing direction)
getStrongPower
in interface IBlockAccess
public WorldType getWorldType()
getWorldType
in interface IBlockAccess
public boolean isSideSolid(BlockPos pos, EnumFacing side, boolean _default)
IBlockAccess
World
isSideSolid
in interface IBlockAccess
pos
- Positionside
- Side_default
- default return value