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() |
private int |
getBaseCoordinate(int p_178157_1_,
int p_178157_2_,
int p_178157_3_) |
protected RenderChunk |
getRenderChunk(BlockPos pos) |
void |
markBlocksForUpdate(int minX,
int minY,
int minZ,
int maxX,
int maxY,
int maxZ,
boolean updateImmediately) |
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)
private int getBaseCoordinate(int p_178157_1_, int p_178157_2_, int p_178157_3_)
public void markBlocksForUpdate(int minX, int minY, int minZ, int maxX, int maxY, int maxZ, boolean updateImmediately)
@Nullable protected RenderChunk getRenderChunk(BlockPos pos)