public class ChunkRenderCache extends java.lang.Object implements IBlockDisplayReader
Modifier and Type | Field and Description |
---|---|
protected BlockState[] |
blockStates |
protected int |
centerX |
protected int |
centerZ |
protected Chunk[][] |
chunks |
protected FluidState[] |
fluidStates |
protected World |
level |
protected BlockPos |
start |
protected int |
xLength |
protected int |
yLength |
protected int |
zLength |
Constructor and Description |
---|
ChunkRenderCache(World p_i49840_1_,
int p_i49840_2_,
int p_i49840_3_,
Chunk[][] p_i49840_4_,
BlockPos p_i49840_5_,
BlockPos p_i49840_6_) |
Modifier and Type | Method and Description |
---|---|
static ChunkRenderCache |
createIfNotEmpty(World p_212397_0_,
BlockPos p_212397_1_,
BlockPos p_212397_2_,
int p_212397_3_) |
TileEntity |
getBlockEntity(BlockPos p_175625_1_) |
TileEntity |
getBlockEntity(BlockPos p_212399_1_,
Chunk.CreateEntityType p_212399_2_) |
BlockState |
getBlockState(BlockPos p_180495_1_) |
int |
getBlockTint(BlockPos p_225525_1_,
ColorResolver p_225525_2_) |
FluidState |
getFluidState(BlockPos p_204610_1_) |
WorldLightManager |
getLightEngine() |
float |
getShade(Direction p_230487_1_,
boolean p_230487_2_) |
protected int |
index(BlockPos p_212398_1_) |
protected int |
index(int p_217339_1_,
int p_217339_2_,
int p_217339_3_) |
static boolean |
isAllEmpty(BlockPos p_241718_0_,
BlockPos p_241718_1_,
int p_241718_2_,
int p_241718_3_,
Chunk[][] p_241718_4_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canSeeSky, getBrightness, getRawBrightness
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel, traverseBlocks
protected final int centerX
protected final int centerZ
protected final BlockPos start
protected final int xLength
protected final int yLength
protected final int zLength
protected final Chunk[][] chunks
protected final BlockState[] blockStates
protected final FluidState[] fluidStates
protected final World level
@Nullable public static ChunkRenderCache createIfNotEmpty(World p_212397_0_, BlockPos p_212397_1_, BlockPos p_212397_2_, int p_212397_3_)
public static boolean isAllEmpty(BlockPos p_241718_0_, BlockPos p_241718_1_, int p_241718_2_, int p_241718_3_, Chunk[][] p_241718_4_)
protected final int index(BlockPos p_212398_1_)
protected int index(int p_217339_1_, int p_217339_2_, int p_217339_3_)
public BlockState getBlockState(BlockPos p_180495_1_)
getBlockState
in interface IBlockReader
public FluidState getFluidState(BlockPos p_204610_1_)
getFluidState
in interface IBlockReader
public float getShade(Direction p_230487_1_, boolean p_230487_2_)
getShade
in interface IBlockDisplayReader
public WorldLightManager getLightEngine()
getLightEngine
in interface IBlockDisplayReader
@Nullable public TileEntity getBlockEntity(BlockPos p_175625_1_)
getBlockEntity
in interface IBlockReader
@Nullable public TileEntity getBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_)
public int getBlockTint(BlockPos p_225525_1_, ColorResolver p_225525_2_)
getBlockTint
in interface IBlockDisplayReader