@Environment(value=CLIENT) public class ChunkRendererRegion extends Object implements BlockRenderView
| Modifier and Type | Field and 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 and Description |
|---|
ChunkRendererRegion(World world,
int chunkX,
int chunkZ,
WorldChunk[][] chunks,
BlockPos startPos,
BlockPos endPos) |
| Modifier and Type | Method and 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) |
float |
getBrightness(Direction direction,
boolean shaded) |
int |
getColor(BlockPos pos,
ColorResolver colorResolver) |
FluidState |
getFluidState(BlockPos pos) |
protected int |
getIndex(BlockPos pos) |
protected int |
getIndex(int x,
int y,
int z) |
LightingProvider |
getLightingProvider() |
static boolean |
method_30000(BlockPos blockPos,
BlockPos blockPos2,
int int2,
int int3,
WorldChunk[][] worldChunk) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseLightLevel, getLightLevel, isSkyVisiblegetDismountHeight, getDismountHeight, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycast, raycastBlockprotected final int chunkXOffset
protected final int chunkZOffset
protected final BlockPos offset
protected final int xSize
protected final int ySize
protected final int zSize
protected final WorldChunk[][] chunks
protected final BlockState[] blockStates
protected final FluidState[] fluidStates
protected final World world
public ChunkRendererRegion(World world, int chunkX, int chunkZ, WorldChunk[][] chunks, BlockPos startPos, BlockPos endPos)
@Nullable public static ChunkRendererRegion create(World world, BlockPos startPos, BlockPos endPos, int chunkRadius)
public static boolean method_30000(BlockPos blockPos, BlockPos blockPos2, int int2, int int3, WorldChunk[][] worldChunk)
protected final int getIndex(BlockPos pos)
protected int getIndex(int x,
int y,
int z)
public BlockState getBlockState(BlockPos pos)
getBlockState in interface BlockViewpublic FluidState getFluidState(BlockPos pos)
getFluidState in interface BlockViewpublic float getBrightness(Direction direction, boolean shaded)
getBrightness in interface BlockRenderViewpublic LightingProvider getLightingProvider()
getLightingProvider in interface BlockRenderView@Nullable public BlockEntity getBlockEntity(BlockPos pos)
getBlockEntity in interface BlockView@Nullable public BlockEntity getBlockEntity(BlockPos blockPos, WorldChunk.CreationType creationType)
public int getColor(BlockPos pos, ColorResolver colorResolver)
getColor in interface BlockRenderView