public class ChunkRenderCache extends java.lang.Object implements ILightReader
修飾子とタイプ | フィールドと説明 |
---|---|
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 |
コンストラクタと説明 |
---|
ChunkRenderCache(World worldIn,
int chunkStartXIn,
int chunkStartZIn,
Chunk[][] chunksIn,
BlockPos startPos,
BlockPos endPos) |
修飾子とタイプ | メソッドと説明 |
---|---|
static ChunkRenderCache |
generateCache(World worldIn,
BlockPos from,
BlockPos to,
int padding)
generates a RenderChunkCache, but returns null if the chunk is empty (contains only air)
|
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
インタフェース内 IBlockReader
public IFluidState getFluidState(BlockPos pos)
getFluidState
インタフェース内 IBlockReader
public WorldLightManager getLightManager()
getLightManager
インタフェース内 ILightReader
@Nullable public TileEntity getTileEntity(BlockPos pos)
getTileEntity
インタフェース内 IBlockReader
@Nullable public TileEntity getTileEntity(BlockPos pos, Chunk.CreateEntityType creationType)
public int getBlockColor(BlockPos blockPosIn, ColorResolver colorResolverIn)
getBlockColor
インタフェース内 ILightReader