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 pSectionRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateSections(SectionRenderDispatcher pSectionRenderDispatcher) protected SectionRenderDispatcher.RenderSectiongetRenderSectionAt(BlockPos pPos) private intgetSectionIndex(int pX, int pY, int pZ) intvoidvoidrepositionCamera(double pViewEntityX, double pViewEntityZ) voidsetDirty(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) protected voidsetViewDistance(int pRenderDistanceChunks)
-
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 pSectionRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer)
-
-
Method Details
-
createSections
-
releaseAllBuffers
public void releaseAllBuffers() -
getSectionIndex
private int getSectionIndex(int pX, int pY, int pZ) -
setViewDistance
protected void setViewDistance(int pRenderDistanceChunks) -
getViewDistance
public int getViewDistance() -
getLevelHeightAccessor
-
repositionCamera
public void repositionCamera(double pViewEntityX, double pViewEntityZ) -
setDirty
public void setDirty(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) -
getRenderSectionAt
-