Class RenderChunkRegion
java.lang.Object
net.minecraft.client.renderer.chunk.RenderChunkRegion
- All Implemented Interfaces:
BlockAndTintGetter,BlockGetter,LevelHeightAccessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockState[]protected intprotected intprotected LevelChunk[][]protected Levelprotected BlockPosprotected intprotected intprotected int -
Constructor Summary
ConstructorsConstructorDescriptionRenderChunkRegion(Level p_112910_, int p_112911_, int p_112912_, LevelChunk[][] p_112913_, BlockPos p_112914_, BlockPos p_112915_) -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderChunkRegioncreateIfNotEmpty(Level p_112921_, BlockPos p_112922_, BlockPos p_112923_, int p_112924_)getBlockEntity(BlockPos p_112945_)getBlockEntity(BlockPos p_112928_, LevelChunk.EntityCreationType p_112929_)getBlockState(BlockPos p_112947_)intgetBlockTint(BlockPos p_112937_, ColorResolver p_112938_)getFluidState(BlockPos p_112943_)intintfloatprotected intindex(int p_112917_, int p_112918_, int p_112919_)protected intstatic booleanisAllEmpty(BlockPos p_112931_, BlockPos p_112932_, int p_112933_, int p_112934_, LevelChunk[][] p_112935_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getRawBrightnessMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
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
-
level
-
-
Constructor Details
-
RenderChunkRegion
public RenderChunkRegion(Level p_112910_, int p_112911_, int p_112912_, LevelChunk[][] p_112913_, BlockPos p_112914_, BlockPos p_112915_)
-
-
Method Details
-
createIfNotEmpty
@Nullable public static RenderChunkRegion createIfNotEmpty(Level p_112921_, BlockPos p_112922_, BlockPos p_112923_, int p_112924_) -
isAllEmpty
public static boolean isAllEmpty(BlockPos p_112931_, BlockPos p_112932_, int p_112933_, int p_112934_, LevelChunk[][] p_112935_) -
index
-
index
protected int index(int p_112917_, int p_112918_, int p_112919_) -
getBlockState
- Specified by:
getBlockStatein interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockGetter
-
getShade
- Specified by:
getShadein interfaceBlockAndTintGetter
-
getLightEngine
- Specified by:
getLightEnginein interfaceBlockAndTintGetter
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockGetter
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos p_112928_, LevelChunk.EntityCreationType p_112929_) -
getBlockTint
- Specified by:
getBlockTintin interfaceBlockAndTintGetter
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeightin interfaceLevelHeightAccessor
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceLevelHeightAccessor
-