Package net.minecraft.client.renderer
Class ViewArea
java.lang.Object
net.minecraft.client.renderer.ViewArea
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Level
protected final LevelRenderer
protected int
protected int
protected int
private int
-
Constructor Summary
ConstructorDescriptionViewArea
(SectionRenderDispatcher p_298339_, Level p_110846_, int p_110847_, LevelRenderer p_110848_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createSections
(SectionRenderDispatcher p_299921_) protected SectionRenderDispatcher.RenderSection
getRenderSectionAt
(BlockPos p_299271_) private int
getSectionIndex
(int p_297902_, int p_298060_, int p_297930_) int
void
void
repositionCamera
(double p_110851_, double p_110852_) void
setDirty
(int p_110860_, int p_110861_, int p_110862_, boolean p_110863_) protected void
setViewDistance
(int p_110854_)
-
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 p_298339_, Level p_110846_, int p_110847_, LevelRenderer p_110848_)
-
-
Method Details
-
createSections
-
releaseAllBuffers
public void releaseAllBuffers() -
getSectionIndex
private int getSectionIndex(int p_297902_, int p_298060_, int p_297930_) -
setViewDistance
protected void setViewDistance(int p_110854_) -
getViewDistance
public int getViewDistance() -
getLevelHeightAccessor
-
repositionCamera
public void repositionCamera(double p_110851_, double p_110852_) -
setDirty
public void setDirty(int p_110860_, int p_110861_, int p_110862_, boolean p_110863_) -
getRenderSectionAt
-