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[]blockStatesprotected intcenterXprotected intcenterZprotected Chunk[][]chunksprotected FluidState[]fluidStatesprotected Worldlevelprotected BlockPosstartprotected intxLengthprotected intyLengthprotected intzLength
-
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 ChunkRenderCachecreateIfNotEmpty(World p_212397_0_, BlockPos p_212397_1_, BlockPos p_212397_2_, int p_212397_3_)TileEntitygetBlockEntity(BlockPos p_175625_1_)TileEntitygetBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_)BlockStategetBlockState(BlockPos p_180495_1_)intgetBlockTint(BlockPos p_225525_1_, ColorResolver p_225525_2_)FluidStategetFluidState(BlockPos p_204610_1_)WorldLightManagergetLightEngine()floatgetShade(Direction p_230487_1_, boolean p_230487_2_)protected intindex(int p_217339_1_, int p_217339_2_, int p_217339_3_)protected intindex(BlockPos p_212398_1_)static booleanisAllEmpty(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:
getBlockStatein interfaceIBlockReader
-
getFluidState
public FluidState getFluidState(BlockPos p_204610_1_)
- Specified by:
getFluidStatein interfaceIBlockReader
-
getShade
public float getShade(Direction p_230487_1_, boolean p_230487_2_)
- Specified by:
getShadein interfaceIBlockDisplayReader
-
getLightEngine
public WorldLightManager getLightEngine()
- Specified by:
getLightEnginein interfaceIBlockDisplayReader
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_175625_1_)
- Specified by:
getBlockEntityin 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:
getBlockTintin interfaceIBlockDisplayReader
-
-