@Environment(value=CLIENT) public class BuiltChunkStorage extends Object
Modifier and Type | Field and Description |
---|---|
ChunkBuilder.BuiltChunk[] |
chunks |
protected int |
sizeX |
protected int |
sizeY |
protected int |
sizeZ |
protected World |
world |
protected WorldRenderer |
worldRenderer |
Constructor and Description |
---|
BuiltChunkStorage(ChunkBuilder chunkBuilder,
World world,
int viewDistance,
WorldRenderer worldRenderer) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
createChunks(ChunkBuilder chunkBuilder) |
private int |
getChunkIndex(int x,
int y,
int z) |
protected ChunkBuilder.BuiltChunk |
getRenderedChunk(BlockPos pos) |
void |
scheduleRebuild(int x,
int y,
int z,
boolean important) |
protected void |
setViewDistance(int viewDistance) |
void |
updateCameraPosition(double x,
double z) |
protected final WorldRenderer worldRenderer
protected final World world
protected int sizeY
protected int sizeX
protected int sizeZ
public ChunkBuilder.BuiltChunk[] chunks
public BuiltChunkStorage(ChunkBuilder chunkBuilder, World world, int viewDistance, WorldRenderer worldRenderer)
protected void createChunks(ChunkBuilder chunkBuilder)
public void clear()
private int getChunkIndex(int x, int y, int z)
protected void setViewDistance(int viewDistance)
public void updateCameraPosition(double x, double z)
public void scheduleRebuild(int x, int y, int z, boolean important)
@Nullable protected ChunkBuilder.BuiltChunk getRenderedChunk(BlockPos pos)