Package net.minecraft.client.renderer
Class ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Levelprotected final LevelRendererprotected intprotected intprotected intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionViewArea(SectionRenderDispatcher p_296460_, Level p_110846_, int p_110847_, LevelRenderer p_110848_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateSections(SectionRenderDispatcher p_294825_) protected SectionRenderDispatcher.RenderSectiongetRenderSectionAt(BlockPos p_294239_) private intgetSectionIndex(int p_295999_, int p_294097_, int p_294966_) intvoidvoidrepositionCamera(double p_110851_, double p_110852_) voidsetDirty(int p_110860_, int p_110861_, int p_110862_, boolean p_110863_) protected voidsetViewDistance(int p_110854_)
-
Field Details
-
levelRenderer
-
level
-
sectionGridSizeY
protected int sectionGridSizeY -
sectionGridSizeX
protected int sectionGridSizeX -
sectionGridSizeZ
protected int sectionGridSizeZ -
viewDistance
private int viewDistance -
sections
-
-
Constructor Details
-
ViewArea
public ViewArea(SectionRenderDispatcher p_296460_, Level p_110846_, int p_110847_, LevelRenderer p_110848_)
-
-
Method Details
-
createSections
-
releaseAllBuffers
public void releaseAllBuffers() -
getSectionIndex
private int getSectionIndex(int p_295999_, int p_294097_, int p_294966_) -
setViewDistance
protected void setViewDistance(int p_110854_) -
getViewDistance
public int getViewDistance() -
getLevelHeightAccessor
-
repositionCamera
public void repositionCamera(double p_110851_, double p_110852_) -
setDirty
public void setDirty(int p_110860_, int p_110861_, int p_110862_, boolean p_110863_) -
getRenderSectionAt
-