Package net.minecraft.client.renderer
Class ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SectionPos
protected final Level
protected final LevelRenderer
protected int
protected int
protected int
private int
-
Constructor Summary
ConstructorsConstructorDescriptionViewArea
(SectionRenderDispatcher pSectionRenderDispatcher, Level pLevel, int pViewDistance, LevelRenderer pLevelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
containsSection
(int pX, int pY, int pZ) protected void
createSections
(SectionRenderDispatcher pSectionRenderDispatcher) getRenderSection
(int pX, int pY, int pZ) protected SectionRenderDispatcher.RenderSection
getRenderSection
(long pSectionPos) protected SectionRenderDispatcher.RenderSection
getRenderSectionAt
(BlockPos pPos) private int
getSectionIndex
(int pX, int pY, int pZ) int
void
void
repositionCamera
(SectionPos pNewSectionPos) void
setDirty
(int pSectionX, int pSectionY, int pSectionZ, boolean pReRenderOnMainThread) protected void
setViewDistance
(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)
-