public class ChunkRenderCache extends java.lang.Object implements ILightReader
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) |
int |
getBlockColor(BlockPos blockPosIn,
ColorResolver colorResolverIn) |
BlockState |
getBlockState(BlockPos pos) |
IFluidState |
getFluidState(BlockPos pos) |
protected int |
getIndex(BlockPos pos) |
protected int |
getIndex(int xIn,
int yIn,
int zIn) |
WorldLightManager |
getLightManager() |
TileEntity |
getTileEntity(BlockPos pos) |
TileEntity |
getTileEntity(BlockPos pos,
Chunk.CreateEntityType creationType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canSeeSky, getLightFor, getLightSubtracted
func_217300_a, getHeight, getLightValue, getMaxLightLevel, rayTraceBlocks, rayTraceBlocks
protected 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 IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
in interface IBlockReader
public WorldLightManager getLightManager()
getLightManager
in interface ILightReader
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
in interface IBlockReader
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType creationType)
public int getBlockColor(BlockPos blockPosIn, ColorResolver colorResolverIn)
getBlockColor
in interface ILightReader