Class RenderChunkRegion
java.lang.Object
net.minecraft.client.renderer.chunk.RenderChunkRegion
- All Implemented Interfaces:
- BlockAndTintGetter,- BlockGetter,- LevelHeightAccessor,- IBlockAndTintGetterExtension,- IBlockGetterExtension
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final intprotected final RenderChunk[][]protected final Levelprivate final ModelDataManager.Snapshot
- 
Constructor SummaryConstructorsConstructorDescriptionRenderChunkRegion(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[][] p_200459_) Deprecated.RenderChunkRegion(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[][] p_200459_, ModelDataManager.Snapshot modelDataManager) 
- 
Method SummaryModifier and TypeMethodDescriptionGet theAuxiliaryLightManagerof the chunk at the givenChunkPos.getBlockEntity(BlockPos p_112945_) getBlockState(BlockPos p_112947_) intgetBlockTint(BlockPos p_112937_, ColorResolver p_112938_) getFluidState(BlockPos p_112943_) intintRetrieves the model data manager for this level.floatgetShade(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.floatMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGettercanSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetterclip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtensiongetAuxLightManagerMethods inherited from interface net.minecraft.world.level.LevelHeightAccessorgetMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
- 
Field Details- 
centerXprivate final int centerX
- 
centerZprivate final int centerZ
- 
chunks
- 
level
- 
modelDataManager
 
- 
- 
Constructor Details- 
RenderChunkRegion@Deprecated RenderChunkRegion(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[][] p_200459_) Deprecated.
- 
RenderChunkRegionRenderChunkRegion(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[][] p_200459_, @Nullable ModelDataManager.Snapshot modelDataManager) 
 
- 
- 
Method Details- 
getBlockState- Specified by:
- getBlockStatein interface- BlockGetter
 
- 
getFluidState- Specified by:
- getFluidStatein interface- BlockGetter
 
- 
getShade- Specified by:
- getShadein interface- BlockAndTintGetter
 
- 
getLightEngine- Specified by:
- getLightEnginein interface- BlockAndTintGetter
 
- 
getBlockEntity- Specified by:
- getBlockEntityin interface- BlockGetter
 
- 
getBlockTint- Specified by:
- getBlockTintin interface- BlockAndTintGetter
 
- 
getMinBuildHeightpublic int getMinBuildHeight()- Specified by:
- getMinBuildHeightin interface- LevelHeightAccessor
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- LevelHeightAccessor
 
- 
getShadepublic float getShade(float normalX, float normalY, float normalZ, boolean shade) Description copied from interface:IBlockAndTintGetterExtensionComputes the shade for a given normal. Alternate version of the vanilla method taking in aDirection.- Specified by:
- getShadein interface- IBlockAndTintGetterExtension
 
- 
getModelDataManagerDescription copied from interface:IBlockGetterExtensionRetrieves the model data manager for this level. This will benullon a server level.- Specified by:
- getModelDataManagerin interface- IBlockGetterExtension
 
- 
getAuxLightManagerDescription copied from interface:IBlockGetterExtensionGet theAuxiliaryLightManagerof the chunk at the givenChunkPos.The light manager must be used to hold light values controlled by dynamic data from BlockEntitys to ensure access to the light data is thread-safe and the data is available during chunk load from disk whereBlockEntitys are not yet added to the chunk.- Specified by:
- getAuxLightManagerin interface- IBlockGetterExtension
- Parameters:
- pos- The position of the chunk from which the light manager is requested
- Returns:
- the light manager or nullif the chunk is not accessible (ChunkSource.getChunkForLighting(int, int)returnednull) or the given implementation ofBlockGetterdoes not implement this method
 
 
-