Class ChunkRenderCache
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderCache
- All Implemented Interfaces:
IBlockDisplayReader
,IBlockReader
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BlockState[]
protected final int
protected final int
protected final Chunk[][]
protected final FluidState[]
protected final World
protected final BlockPos
protected final int
protected final int
protected final int
-
Constructor Summary
ConstructorDescriptionChunkRenderCache
(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 ChunkRenderCache
createIfNotEmpty
(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_) int
getBlockTint
(BlockPos p_225525_1_, ColorResolver p_225525_2_) getFluidState
(BlockPos p_204610_1_) float
protected int
index
(int p_217339_1_, int p_217339_2_, int p_217339_3_) protected final int
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 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:
getBlockState
in interfaceIBlockReader
-
getFluidState
- Specified by:
getFluidState
in interfaceIBlockReader
-
getShade
- Specified by:
getShade
in interfaceIBlockDisplayReader
-
getLightEngine
- Specified by:
getLightEngine
in interfaceIBlockDisplayReader
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceIBlockReader
-
getBlockEntity
@Nullable public TileEntity getBlockEntity(BlockPos p_212399_1_, Chunk.CreateEntityType p_212399_2_) -
getBlockTint
- Specified by:
getBlockTint
in interfaceIBlockDisplayReader
-