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[]
blockStates
protected WorldChunk[][]
chunks
protected int
chunkXOffset
protected int
chunkZOffset
protected FluidState[]
fluidStates
protected BlockPos
offset
protected World
world
protected int
xSize
protected int
ySize
protected int
zSize
-
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 ChunkRendererRegion
create(World world, BlockPos startPos, BlockPos endPos, int chunkRadius)
BlockEntity
getBlockEntity(BlockPos pos)
BlockEntity
getBlockEntity(BlockPos blockPos, WorldChunk.CreationType creationType)
BlockState
getBlockState(BlockPos pos)
int
getBottomSectionLimit()
float
getBrightness(Direction direction, boolean shaded)
int
getColor(BlockPos pos, ColorResolver colorResolver)
FluidState
getFluidState(BlockPos pos)
protected int
getIndex(int x, int y, int z)
protected int
getIndex(BlockPos pos)
LightingProvider
getLightingProvider()
int
getSectionCount()
static boolean
method_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, wait
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods 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:
getBlockState
in interfaceBlockView
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockView
-
getBrightness
- Specified by:
getBrightness
in interfaceBlockRenderView
-
getLightingProvider
- Specified by:
getLightingProvider
in interfaceBlockRenderView
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockView
-
getBlockEntity
@Nullable public BlockEntity getBlockEntity(BlockPos blockPos, WorldChunk.CreationType creationType) -
getColor
- Specified by:
getColor
in interfaceBlockRenderView
-
getSectionCount
public int getSectionCount()- Specified by:
getSectionCount
in interfaceHeightLimitView
-
getBottomSectionLimit
public int getBottomSectionLimit()- Specified by:
getBottomSectionLimit
in interfaceHeightLimitView
-