Package net.minecraft.client.renderer
Class ViewFrustum
java.lang.Object
net.minecraft.client.renderer.ViewFrustum
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected int
protected final World
protected final WorldRenderer
-
Constructor Summary
ConstructorDescriptionViewFrustum
(ChunkRenderDispatcher p_i226000_1_, World p_i226000_2_, int p_i226000_3_, WorldRenderer p_i226000_4_) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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 Details
-
levelRenderer
-
level
-
chunkGridSizeY
protected int chunkGridSizeY -
chunkGridSizeX
protected int chunkGridSizeX -
chunkGridSizeZ
protected int chunkGridSizeZ -
chunks
-
-
Constructor Details
-
ViewFrustum
public ViewFrustum(ChunkRenderDispatcher p_i226000_1_, World p_i226000_2_, int p_i226000_3_, WorldRenderer p_i226000_4_)
-
-
Method Details
-
createChunks
-
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
-