Package net.minecraft.client.renderer
Class ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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 TypeMethodDescriptionprotected void
createSections
(SectionRenderDispatcher pSectionRenderDispatcher) protected SectionRenderDispatcher.RenderSection
getRenderSectionAt
(BlockPos pPos) private int
getSectionIndex
(int pX, int pY, int pZ) int
void
void
repositionCamera
(double pViewEntityX, double pViewEntityZ) 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 -
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
-