public class ViewFrustum
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
countChunksX |
protected int |
countChunksY |
protected int |
countChunksZ |
ChunkRenderDispatcher.ChunkRender[] |
renderChunks |
protected WorldRenderer |
renderGlobal |
protected World |
world |
Constructor and Description |
---|
ViewFrustum(ChunkRenderDispatcher renderDispatcherIn,
World worldIn,
int countChunksIn,
WorldRenderer renderGlobalIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
createRenderChunks(ChunkRenderDispatcher renderChunkFactory) |
void |
deleteGlResources() |
private int |
getIndex(int x,
int y,
int z) |
protected ChunkRenderDispatcher.ChunkRender |
getRenderChunk(BlockPos pos) |
void |
markForRerender(int sectionX,
int sectionY,
int sectionZ,
boolean rerenderOnMainThread) |
protected void |
setCountChunksXYZ(int renderDistanceChunks) |
void |
updateChunkPositions(double viewEntityX,
double viewEntityZ) |
protected final WorldRenderer renderGlobal
protected final World world
protected int countChunksY
protected int countChunksX
protected int countChunksZ
public ChunkRenderDispatcher.ChunkRender[] renderChunks
public ViewFrustum(ChunkRenderDispatcher renderDispatcherIn, World worldIn, int countChunksIn, WorldRenderer renderGlobalIn)
protected void createRenderChunks(ChunkRenderDispatcher renderChunkFactory)
public void deleteGlResources()
private int getIndex(int x, int y, int z)
protected void setCountChunksXYZ(int renderDistanceChunks)
public void updateChunkPositions(double viewEntityX, double viewEntityZ)
public void markForRerender(int sectionX, int sectionY, int sectionZ, boolean rerenderOnMainThread)
@Nullable protected ChunkRenderDispatcher.ChunkRender getRenderChunk(BlockPos pos)