Class ChunkRendererRegion
java.lang.Object
net.minecraft.client.render.chunk.ChunkRendererRegion
- All Implemented Interfaces:
BlockRenderView,BlockView,HeightLimitView
@Environment(CLIENT) public class ChunkRendererRegion extends Object implements BlockRenderView
-
Field Summary
Fields Modifier and Type Field Description protected BlockState[]blockStatesprotected WorldChunk[][]chunksprotected intchunkXOffsetprotected intchunkZOffsetprotected FluidState[]fluidStatesprotected BlockPosoffsetprotected Worldworldprotected intxSizeprotected intySizeprotected intzSize -
Constructor Summary
Constructors Constructor Description ChunkRendererRegion(World world, int chunkX, int chunkZ, WorldChunk[][] chunks, BlockPos startPos, BlockPos endPos) -
Method Summary
Modifier and Type Method Description static ChunkRendererRegioncreate(World world, BlockPos startPos, BlockPos endPos, int chunkRadius)BlockEntitygetBlockEntity(BlockPos pos)BlockEntitygetBlockEntity(BlockPos blockPos, WorldChunk.CreationType creationType)BlockStategetBlockState(BlockPos pos)intgetBottomSectionLimit()floatgetBrightness(Direction direction, boolean shaded)intgetColor(BlockPos pos, ColorResolver colorResolver)FluidStategetFluidState(BlockPos pos)protected intgetIndex(int x, int y, int z)protected intgetIndex(BlockPos pos)LightingProvidergetLightingProvider()intgetSectionCount()static booleanmethod_30000(BlockPos blockPos, BlockPos blockPos2, int int2, int int3, WorldChunk[][] worldChunk)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Field Details
-
chunkXOffset
protected final int chunkXOffset -
chunkZOffset
protected final int chunkZOffset -
offset
-
xSize
protected final int xSize -
ySize
protected final int ySize -
zSize
protected final int zSize -
chunks
-
blockStates
-
fluidStates
-
world
-
-
Constructor Details
-
ChunkRendererRegion
public ChunkRendererRegion(World world, int chunkX, int chunkZ, WorldChunk[][] chunks, BlockPos startPos, BlockPos endPos)
-
-
Method Details
-
create
@Nullable public static ChunkRendererRegion create(World world, BlockPos startPos, BlockPos endPos, int chunkRadius) -
method_30000
public static boolean method_30000(BlockPos blockPos, BlockPos blockPos2, int int2, int int3, WorldChunk[][] worldChunk) -
getIndex
-
getIndex
protected int getIndex(int x, int y, int z) -
getBlockState
- Specified by:
getBlockStatein interfaceBlockView
-
getFluidState
- Specified by:
getFluidStatein interfaceBlockView
-
getBrightness
- Specified by:
getBrightnessin interfaceBlockRenderView
-
getLightingProvider
- Specified by:
getLightingProviderin interfaceBlockRenderView
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockView
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos blockPos, WorldChunk.CreationType creationType) -
getColor
- Specified by:
getColorin interfaceBlockRenderView
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-