Class RenderChunkRegion
java.lang.Object
net.minecraft.client.renderer.chunk.RenderChunkRegion
- All Implemented Interfaces:
BlockAndTintGetter
,BlockGetter
,LevelHeightAccessor
-
Field Summary
Modifier and TypeFieldDescriptionprotected BlockState[]
protected int
protected int
protected LevelChunk[][]
protected Level
protected BlockPos
protected int
protected int
protected int
-
Constructor Summary
ConstructorDescriptionRenderChunkRegion(Level p_112910_, int p_112911_, int p_112912_, LevelChunk[][] p_112913_, BlockPos p_112914_, BlockPos p_112915_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic RenderChunkRegion
createIfNotEmpty(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_)
int
getBlockTint(BlockPos p_112937_, ColorResolver p_112938_)
getFluidState(BlockPos p_112943_)
int
int
float
protected int
index(int p_112917_, int p_112918_, int p_112919_)
protected int
static boolean
isAllEmpty(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, 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.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:
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
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos p_112928_, LevelChunk.EntityCreationType p_112929_) -
getBlockTint
- Specified by:
getBlockTint
in interfaceBlockAndTintGetter
-
getMinBuildHeight
public int getMinBuildHeight()- Specified by:
getMinBuildHeight
in interfaceLevelHeightAccessor
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLevelHeightAccessor
-