Class RenderChunkRegion
java.lang.Object
net.minecraft.client.renderer.chunk.RenderChunkRegion
- All Implemented Interfaces:
BlockAndTintGetter
,BlockGetter
,LevelHeightAccessor
,IForgeBlockAndTintGetter
,IForgeBlockGetter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRenderChunkRegion
(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[] p_342584_) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity
(BlockPos p_112945_) getBlockState
(BlockPos p_112947_) int
getBlockTint
(BlockPos p_112937_, ColorResolver p_112938_) private RenderChunk
getChunk
(int p_344830_, int p_345301_) getFluidState
(BlockPos p_112943_) int
int
Retrieves the model data manager for this level.float
getShade
(float normalX, float normalY, float normalZ, boolean shade) Computes the shade for a given normal.float
static int
index
(int p_345383_, int p_342744_, int p_343921_, int p_343462_) 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.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightness
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
RADIUS
public static final int RADIUS- See Also:
-
SIZE
public static final int SIZE- See Also:
-
minChunkX
private final int minChunkX -
minChunkZ
private final int minChunkZ -
chunks
-
level
-
-
Constructor Details
-
RenderChunkRegion
RenderChunkRegion(Level p_200456_, int p_200457_, int p_200458_, RenderChunk[] p_342584_)
-
-
Method Details
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
-
getShade
- Specified by:
getShade
in interfaceBlockAndTintGetter
-
getLightEngine
- Specified by:
getLightEngine
in interfaceBlockAndTintGetter
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockGetter
-
getChunk
-
getBlockTint
- Specified by:
getBlockTint
in interfaceBlockAndTintGetter
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeight
in interfaceLevelHeightAccessor
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLevelHeightAccessor
-
index
public static int index(int p_345383_, int p_342744_, int p_343921_, int p_343462_) -
getShade
public float getShade(float normalX, float normalY, float normalZ, boolean shade) Description copied from interface:IForgeBlockAndTintGetter
Computes the shade for a given normal. Alternate version of the vanilla method taking in aDirection
.- Specified by:
getShade
in interfaceIForgeBlockAndTintGetter
-
getModelDataManager
Description copied from interface:IForgeBlockGetter
Retrieves the model data manager for this level. This will benull
on a server level.- Specified by:
getModelDataManager
in interfaceIForgeBlockGetter
-