public class ChunkRenderCache extends java.lang.Object implements IEnviromentBlockReader
| Modifier and Type | Field and Description |
|---|---|
protected BlockState[] |
blockStates |
protected int |
cacheSizeX |
protected int |
cacheSizeY |
protected int |
cacheSizeZ |
protected BlockPos |
cacheStartPos |
protected Chunk[][] |
chunks |
protected int |
chunkStartX |
protected int |
chunkStartZ |
protected IFluidState[] |
fluidStates |
protected World |
world |
| Constructor and Description |
|---|
ChunkRenderCache(World worldIn,
int chunkStartXIn,
int chunkStartZIn,
Chunk[][] chunksIn,
BlockPos startPos,
BlockPos endPos) |
| Modifier and Type | Method and Description |
|---|---|
static ChunkRenderCache |
generateCache(World worldIn,
BlockPos from,
BlockPos to,
int padding) |
Biome |
getBiome(BlockPos pos) |
BlockState |
getBlockState(BlockPos pos) |
IFluidState |
getFluidState(BlockPos pos) |
protected int |
getIndex(BlockPos pos) |
protected int |
getIndex(int xIn,
int yIn,
int zIn) |
int |
getLightFor(LightType type,
BlockPos pos) |
TileEntity |
getTileEntity(BlockPos pos) |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.CreateEntityType creationType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCombinedLight, isSkyLightMaxfunc_217296_a, func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocksprotected final int chunkStartX
protected final int chunkStartZ
protected final BlockPos cacheStartPos
protected final int cacheSizeX
protected final int cacheSizeY
protected final int cacheSizeZ
protected final Chunk[][] chunks
protected final BlockState[] blockStates
protected final IFluidState[] fluidStates
protected final World world
@Nullable public static ChunkRenderCache generateCache(World worldIn, BlockPos from, BlockPos to, int padding)
protected final int getIndex(BlockPos pos)
protected int getIndex(int xIn,
int yIn,
int zIn)
public BlockState getBlockState(BlockPos pos)
getBlockState in interface IBlockReaderpublic IFluidState getFluidState(BlockPos pos)
getFluidState in interface IBlockReaderpublic int getLightFor(LightType type, BlockPos pos)
getLightFor in interface IEnviromentBlockReaderpublic Biome getBiome(BlockPos pos)
getBiome in interface IEnviromentBlockReader@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity in interface IBlockReader@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType creationType)