Class ChunkRenderCache
- java.lang.Object
-
- net.minecraft.client.renderer.chunk.ChunkRenderCache
-
- All Implemented Interfaces:
IBlockDisplayReader
,IBlockReader
public class ChunkRenderCache extends java.lang.Object implements IBlockDisplayReader
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(int p_217339_1_, int p_217339_2_, int p_217339_3_)
protected int
index(BlockPos p_212398_1_)
static boolean
isAllEmpty(BlockPos p_241718_0_, BlockPos p_241718_1_, int p_241718_2_, int p_241718_3_, Chunk[][] p_241718_4_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.world.IBlockDisplayReader
canSeeSky, getBrightness, getRawBrightness
-
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel
-
-
-
-
Field Detail
-
centerX
protected final int centerX
-
centerZ
protected final int centerZ
-
start
protected final BlockPos start
-
xLength
protected final int xLength
-
yLength
protected final int yLength
-
zLength
protected final int zLength
-
chunks
protected final Chunk[][] chunks
-
blockStates
protected final BlockState[] blockStates
-
fluidStates
protected final FluidState[] fluidStates
-
level
protected final World level
-
-
Method Detail
-
createIfNotEmpty
@Nullable public static ChunkRenderCache createIfNotEmpty(World p_212397_0_, BlockPos p_212397_1_, BlockPos p_212397_2_, int p_212397_3_)
-
isAllEmpty
public static boolean isAllEmpty(BlockPos p_241718_0_, BlockPos p_241718_1_, int p_241718_2_, int p_241718_3_, Chunk[][] p_241718_4_)
-
index
protected final int index(BlockPos p_212398_1_)
-
index
protected int index(int p_217339_1_, int p_217339_2_, int p_217339_3_)
-
getBlockState
public BlockState getBlockState(BlockPos p_180495_1_)
- Specified by:
getBlockState
in interfaceIBlockReader
-
getFluidState
public FluidState getFluidState(BlockPos p_204610_1_)
- Specified by:
getFluidState
in interfaceIBlockReader
-
getShade
public float getShade(Direction p_230487_1_, boolean p_230487_2_)
- Specified by:
getShade
in interfaceIBlockDisplayReader
-
getLightEngine
public WorldLightManager getLightEngine()
- Specified by:
getLightEngine
in interfaceIBlockDisplayReader
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_175625_1_)
- Specified by:
getBlockEntity
in interfaceIBlockReader
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_)
-
getBlockTint
public int getBlockTint(BlockPos p_225525_1_, ColorResolver p_225525_2_)
- Specified by:
getBlockTint
in interfaceIBlockDisplayReader
-
-