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 |
world |
Constructor and Description |
---|
ChunkCache(World worldIn,
BlockPos posFromIn,
BlockPos posToIn,
int subIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
extendedLevelsInChunkCache() |
Biome |
getBiome(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) |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.EnumCreateEntityType p_190300_2_) |
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 world
public boolean extendedLevelsInChunkCache()
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockAccess
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.EnumCreateEntityType p_190300_2_)
public int getCombinedLight(BlockPos pos, int lightValue)
getCombinedLight
in interface IBlockAccess
public IBlockState getBlockState(BlockPos pos)
getBlockState
in interface IBlockAccess
public Biome getBiome(BlockPos pos)
getBiome
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