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 sectionRenderDispatcher, Level level, int renderDistance, LevelRenderer levelRenderer) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancontainsSection(int sectionX, int sectionY, int sectionZ) protected voidcreateSections(SectionRenderDispatcher sectionRenderDispatcher) private @Nullable SectionRenderDispatcher.RenderSectiongetRenderSection(int sectionX, int sectionY, int sectionZ) protected @Nullable SectionRenderDispatcher.RenderSectiongetRenderSection(long sectionNode) protected @Nullable SectionRenderDispatcher.RenderSectionprivate intgetSectionIndex(int x, int y, int z) intvoidvoidrepositionCamera(SectionPos cameraSectionPos) voidsetDirty(int sectionX, int sectionY, int sectionZ, boolean playerChanged) protected voidsetViewDistance(int renderDistance)
-
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 sectionRenderDispatcher, Level level, int renderDistance, LevelRenderer levelRenderer)
-
-
Method Details
-
createSections
-
releaseAllBuffers
public void releaseAllBuffers() -
getSectionIndex
private int getSectionIndex(int x, int y, int z) -
setViewDistance
protected void setViewDistance(int renderDistance) -
getViewDistance
public int getViewDistance() -
getLevelHeightAccessor
-
repositionCamera
-
getCameraSectionPos
-
setDirty
public void setDirty(int sectionX, int sectionY, int sectionZ, boolean playerChanged) -
getRenderSectionAt
-
getRenderSection
-
getRenderSection
private @Nullable SectionRenderDispatcher.RenderSection getRenderSection(int sectionX, int sectionY, int sectionZ) -
containsSection
private boolean containsSection(int sectionX, int sectionY, int sectionZ)
-