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 |
empty |
protected World |
world |
Constructor and Description |
---|
ChunkCache(World worldIn,
BlockPos posFromIn,
BlockPos posToIn,
int subIn) |
Modifier and Type | Method and Description |
---|---|
Biome |
getBiome(BlockPos pos) |
IBlockState |
getBlockState(BlockPos pos) |
int |
getCombinedLight(BlockPos pos,
int lightValue) |
int |
getLightFor(EnumSkyBlock type,
BlockPos pos) |
private int |
getLightForExt(EnumSkyBlock type,
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 |
isEmpty() |
boolean |
isSideSolid(BlockPos pos,
EnumFacing side,
boolean _default)
FORGE: isSideSolid, pulled up from
World |
private boolean |
withinBounds(int x,
int z) |
protected int chunkX
protected int chunkZ
protected Chunk[][] chunkArray
protected boolean empty
protected World world
public boolean isEmpty()
@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
private int getLightForExt(EnumSkyBlock type, BlockPos pos)
public boolean isAirBlock(BlockPos pos)
isAirBlock
in interface IBlockAccess
public int getLightFor(EnumSkyBlock type, 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 valueprivate boolean withinBounds(int x, int z)