Package net.minecraft.client.renderer
Class ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SectionPosprotected final Levelprotected final LevelRendererprotected intprotected intprotected intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionViewArea(SectionRenderDispatcher pSectionRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancontainsSection(int pX, int pY, int pZ) protected voidcreateSections(SectionRenderDispatcher pSectionRenderDispatcher) getRenderSection(int pX, int pY, int pZ) protected SectionRenderDispatcher.RenderSectiongetRenderSection(long pSectionPos) protected SectionRenderDispatcher.RenderSectiongetRenderSectionAt(BlockPos pPos) private intgetSectionIndex(int pX, int pY, int pZ) intvoidvoidrepositionCamera(SectionPos pNewSectionPos) 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 -
cameraSectionPos
-
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
-
getCameraSectionPos
-
setDirty
public void setDirty(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) -
getRenderSectionAt
-
getRenderSection
-
getRenderSection
-
containsSection
private boolean containsSection(int pX, int pY, int pZ)
-