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 AABB
private final Map
<RenderType, VertexBuffer> private boolean
private final Set
<BlockEntity> final int
(package private) final BlockPos.MutableBlockPos
private boolean
(package private) long
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
compileSync
(RenderRegionCache p_296018_) createCompileTask
(RenderRegionCache p_295324_) (package private) VertexSorting
private boolean
doesChunkExistAt
(long p_366835_) Returns the bounding box of the section.getBuffer
(RenderType p_294497_) protected double
long
getNeighborSectionNode
(Direction p_366736_) Returns the block position at the origin of the section.long
boolean
boolean
boolean
isDirty()
boolean
boolean
isEmpty()
Returns true if the compiled section contains no chunk render layers.void
rebuildSectionAsync
(SectionRenderDispatcher p_295901_, RenderRegionCache p_294660_) void
private void
reset()
void
resortTransparency
(SectionRenderDispatcher p_294363_) (package private) void
void
setDirty
(boolean p_295417_) void
void
setSectionNode
(long p_366482_) boolean
(package private) void
updateGlobalBlockEntities
(Collection<BlockEntity> p_296155_)
-
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 p_295197_, long p_366428_)
-
-
Method Details
-
doesChunkExistAt
private boolean doesChunkExistAt(long p_366835_) -
hasAllNeighbors
public boolean hasAllNeighbors() -
getBoundingBox
Description copied from interface:IRenderableSection
Returns the bounding box of the section.- Specified by:
getBoundingBox
in interfaceIRenderableSection
- Returns:
- the bounding box of the section
-
getBuffer
-
setSectionNode
public void setSectionNode(long p_366482_) -
getDistToPlayerSqr
protected double getDistToPlayerSqr() -
getCompiled
-
reset
private void reset() -
releaseBuffers
public void releaseBuffers() -
getOrigin
Description copied from interface:IRenderableSection
Returns the block position at the origin of the section.- Specified by:
getOrigin
in interfaceIRenderableSection
- Returns:
- the block position at the origin of the section
-
getSectionNode
public long getSectionNode() -
setDirty
public void setDirty(boolean p_295417_) -
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 p_295324_) -
rebuildSectionAsync
-
updateGlobalBlockEntities
-
compileSync
-
setCompiled
-
createVertexSorting
VertexSorting createVertexSorting() -
isEmpty
public boolean isEmpty()Description copied from interface:IRenderableSection
Returns true if the compiled section contains no chunk render layers.- Specified by:
isEmpty
in interfaceIRenderableSection
- Returns:
- true if the compiled section contains no chunk render layers
-