Class SectionRenderDispatcher.RenderSection
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher.RenderSection
- All Implemented Interfaces:
IRenderableSection
- Enclosing class:
SectionRenderDispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AABBprivate final Map<RenderType, VertexBuffer> private booleanprivate final Set<BlockEntity> final int(package private) final BlockPos.MutableBlockPosprivate boolean(package private) longstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidcompileSync(RenderRegionCache pRegionCache) createCompileTask(RenderRegionCache pRegionCache) (package private) VertexSortingprivate booleandoesChunkExistAt(long pPos) Returns the bounding box of the section.getBuffer(RenderType pRenderType) protected doublelonggetNeighborSectionNode(Direction pDirection) Returns the block position at the origin of the section.longbooleanbooleanbooleanisDirty()booleanbooleanisEmpty()Returns true if the compiled section contains no chunk render layers.voidrebuildSectionAsync(SectionRenderDispatcher pSectionRenderDispatcher, RenderRegionCache pRegionCache) voidprivate voidreset()voidresortTransparency(SectionRenderDispatcher pDispatcher) (package private) voidvoidsetDirty(boolean pPlayerChanged) voidvoidsetSectionNode(long pSectionNode) boolean(package private) voidupdateGlobalBlockEntities(Collection<BlockEntity> pBlockEntities)
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
index
public final int index -
compiled
-
pointOfView
-
lastRebuildTask
-
lastResortTransparencyTask
@Nullable private SectionRenderDispatcher.RenderSection.ResortTransparencyTask lastResortTransparencyTask -
globalBlockEntities
-
buffers
-
bb
-
dirty
private boolean dirty -
sectionNode
long sectionNode -
origin
-
playerChanged
private boolean playerChanged
-
-
Constructor Details
-
RenderSection
public RenderSection(int pIndex, long pSectionNode)
-
-
Method Details
-
doesChunkExistAt
private boolean doesChunkExistAt(long pPos) -
hasAllNeighbors
public boolean hasAllNeighbors() -
getBoundingBox
Description copied from interface:IRenderableSectionReturns the bounding box of the section.- Specified by:
getBoundingBoxin interfaceIRenderableSection- Returns:
- the bounding box of the section
-
getBuffer
-
setSectionNode
public void setSectionNode(long pSectionNode) -
getDistToPlayerSqr
protected double getDistToPlayerSqr() -
getCompiled
-
reset
private void reset() -
releaseBuffers
public void releaseBuffers() -
getOrigin
Description copied from interface:IRenderableSectionReturns the block position at the origin of the section.- Specified by:
getOriginin interfaceIRenderableSection- Returns:
- the block position at the origin of the section
-
getSectionNode
public long getSectionNode() -
setDirty
public void setDirty(boolean pPlayerChanged) -
setNotDirty
public void setNotDirty() -
isDirty
public boolean isDirty() -
isDirtyFromPlayer
public boolean isDirtyFromPlayer() -
getNeighborSectionNode
-
resortTransparency
-
hasTranslucentGeometry
public boolean hasTranslucentGeometry() -
transparencyResortingScheduled
public boolean transparencyResortingScheduled() -
cancelTasks
protected void cancelTasks() -
createCompileTask
public SectionRenderDispatcher.RenderSection.CompileTask createCompileTask(RenderRegionCache pRegionCache) -
rebuildSectionAsync
public void rebuildSectionAsync(SectionRenderDispatcher pSectionRenderDispatcher, RenderRegionCache pRegionCache) -
updateGlobalBlockEntities
-
compileSync
-
setCompiled
-
createVertexSorting
VertexSorting createVertexSorting() -
isEmpty
public boolean isEmpty()Description copied from interface:IRenderableSectionReturns true if the compiled section contains no chunk render layers.- Specified by:
isEmptyin interfaceIRenderableSection- Returns:
- true if the compiled section contains no chunk render layers
-