Package net.minecraft.client.renderer
Class ViewFrustum
- java.lang.Object
-
- net.minecraft.client.renderer.ViewFrustum
-
public class ViewFrustum extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
chunkGridSizeX
protected int
chunkGridSizeY
protected int
chunkGridSizeZ
ChunkRenderDispatcher.ChunkRender[]
chunks
protected World
level
protected WorldRenderer
levelRenderer
-
Constructor Summary
Constructors Constructor Description ViewFrustum(ChunkRenderDispatcher p_i226000_1_, World p_i226000_2_, int p_i226000_3_, WorldRenderer p_i226000_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createChunks(ChunkRenderDispatcher p_228789_1_)
private int
getChunkIndex(int p_212478_1_, int p_212478_2_, int p_212478_3_)
protected ChunkRenderDispatcher.ChunkRender
getRenderChunkAt(BlockPos p_178161_1_)
void
releaseAllBuffers()
void
repositionCamera(double p_178163_1_, double p_178163_3_)
void
setDirty(int p_217628_1_, int p_217628_2_, int p_217628_3_, boolean p_217628_4_)
protected void
setViewDistance(int p_178159_1_)
-
-
-
Field Detail
-
levelRenderer
protected final WorldRenderer levelRenderer
-
level
protected final World level
-
chunkGridSizeY
protected int chunkGridSizeY
-
chunkGridSizeX
protected int chunkGridSizeX
-
chunkGridSizeZ
protected int chunkGridSizeZ
-
chunks
public ChunkRenderDispatcher.ChunkRender[] chunks
-
-
Constructor Detail
-
ViewFrustum
public ViewFrustum(ChunkRenderDispatcher p_i226000_1_, World p_i226000_2_, int p_i226000_3_, WorldRenderer p_i226000_4_)
-
-
Method Detail
-
createChunks
protected void createChunks(ChunkRenderDispatcher p_228789_1_)
-
releaseAllBuffers
public void releaseAllBuffers()
-
getChunkIndex
private int getChunkIndex(int p_212478_1_, int p_212478_2_, int p_212478_3_)
-
setViewDistance
protected void setViewDistance(int p_178159_1_)
-
repositionCamera
public void repositionCamera(double p_178163_1_, double p_178163_3_)
-
setDirty
public void setDirty(int p_217628_1_, int p_217628_2_, int p_217628_3_, boolean p_217628_4_)
-
getRenderChunkAt
@Nullable protected ChunkRenderDispatcher.ChunkRender getRenderChunkAt(BlockPos p_178161_1_)
-
-