Class ChunkRenderCache
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderCache
- All Implemented Interfaces:
IBlockDisplayReader,IBlockReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockState[]protected final intprotected final intprotected final Chunk[][]protected final FluidState[]protected final Worldprotected final BlockPosprotected final intprotected final intprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionChunkRenderCache(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
Modifier and TypeMethodDescriptionstatic ChunkRenderCachecreateIfNotEmpty(World p_212397_0_, BlockPos p_212397_1_, BlockPos p_212397_2_, int p_212397_3_) getBlockEntity(BlockPos p_175625_1_) getBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_) getBlockState(BlockPos p_180495_1_) intgetBlockTint(BlockPos p_225525_1_, ColorResolver p_225525_2_) getFluidState(BlockPos p_204610_1_) floatprotected intindex(int p_217339_1_, int p_217339_2_, int p_217339_3_) protected final intstatic 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, waitMethods inherited from interface net.minecraft.world.IBlockDisplayReader
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel
-
Field Details
-
centerX
protected final int centerX -
centerZ
protected final int centerZ -
start
-
xLength
protected final int xLength -
yLength
protected final int yLength -
zLength
protected final int zLength -
chunks
-
blockStates
-
fluidStates
-
level
-
-
Constructor Details
-
ChunkRenderCache
-
-
Method Details
-
createIfNotEmpty
@Nullable public static ChunkRenderCache createIfNotEmpty(World p_212397_0_, BlockPos p_212397_1_, BlockPos p_212397_2_, int p_212397_3_) -
isAllEmpty
-
index
-
index
protected int index(int p_217339_1_, int p_217339_2_, int p_217339_3_) -
getBlockState
- Specified by:
getBlockStatein interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidStatein interfaceIBlockReader
-
getShade
- Specified by:
getShadein interfaceIBlockDisplayReader
-
getLightEngine
- Specified by:
getLightEnginein interfaceIBlockDisplayReader
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceIBlockReader
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_) -
getBlockTint
- Specified by:
getBlockTintin interfaceIBlockDisplayReader
-