public class ViewFrustum
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
countChunksX |
protected int |
countChunksY |
protected int |
countChunksZ |
RenderChunk[] |
renderChunks |
protected RenderGlobal |
renderGlobal |
protected World |
world |
Constructor and Description |
---|
ViewFrustum(World worldIn,
int renderDistanceChunks,
RenderGlobal renderGlobalIn,
IRenderChunkFactory renderChunkFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
createRenderChunks(IRenderChunkFactory renderChunkFactory) |
void |
deleteGlResources() |
protected RenderChunk |
getRenderChunk(BlockPos pos) |
void |
markBlocksForUpdate(int p_187474_1_,
int p_187474_2_,
int p_187474_3_,
int p_187474_4_,
int p_187474_5_,
int p_187474_6_,
boolean p_187474_7_) |
protected void |
setCountChunksXYZ(int renderDistanceChunks) |
void |
updateChunkPositions(double viewEntityX,
double viewEntityZ) |
protected final RenderGlobal renderGlobal
protected final World world
protected int countChunksY
protected int countChunksX
protected int countChunksZ
public RenderChunk[] renderChunks
public ViewFrustum(World worldIn, int renderDistanceChunks, RenderGlobal renderGlobalIn, IRenderChunkFactory renderChunkFactory)
protected void createRenderChunks(IRenderChunkFactory renderChunkFactory)
public void deleteGlResources()
protected void setCountChunksXYZ(int renderDistanceChunks)
public void updateChunkPositions(double viewEntityX, double viewEntityZ)
public void markBlocksForUpdate(int p_187474_1_, int p_187474_2_, int p_187474_3_, int p_187474_4_, int p_187474_5_, int p_187474_6_, boolean p_187474_7_)
@Nullable protected RenderChunk getRenderChunk(BlockPos pos)