public class ViewFrustum
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
countChunksX |
protected int |
countChunksY |
protected int |
countChunksZ |
ChunkRender[] |
renderChunks |
protected WorldRenderer |
renderGlobal |
protected World |
world |
Constructor and Description |
---|
ViewFrustum(World worldIn,
int renderDistanceChunks,
WorldRenderer renderGlobalIn,
IChunkRendererFactory renderChunkFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
createRenderChunks(IChunkRendererFactory renderChunkFactory) |
void |
deleteGlResources() |
protected 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 ChunkRender[] renderChunks
public ViewFrustum(World worldIn, int renderDistanceChunks, WorldRenderer renderGlobalIn, IChunkRendererFactory renderChunkFactory)
protected void createRenderChunks(IChunkRendererFactory renderChunkFactory)
public void deleteGlResources()
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 ChunkRender getRenderChunk(BlockPos pos)