Class ChunkRenderDispatcher.RenderChunk
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderDispatcher.RenderChunk
- Enclosing class:
- ChunkRenderDispatcher
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate AABB
private final Map<RenderType,
VertexBuffer> private boolean
private final Set<BlockEntity>
final int
(package private) final AtomicInteger
(package private) final BlockPos.MutableBlockPos
private boolean
private final BlockPos.MutableBlockPos[]
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
beginLayer
(BufferBuilder p_112806_) protected boolean
void
compileSync
(RenderRegionCache p_200440_) createCompileTask
(RenderRegionCache p_200438_) private boolean
doesChunkExistAt
(BlockPos p_112823_) getBuffer
(RenderType p_112808_) protected double
getRelativeOrigin
(Direction p_112825_) boolean
boolean
isDirty()
boolean
void
rebuildChunkAsync
(ChunkRenderDispatcher p_200435_, RenderRegionCache p_200436_) void
private void
reset()
boolean
resortTransparency
(RenderType p_112810_, ChunkRenderDispatcher p_112811_) void
setDirty
(boolean p_112829_) void
void
setOrigin
(int p_112802_, int p_112803_, int p_112804_) (package private) void
updateGlobalBlockEntities
(Collection<BlockEntity> p_234466_)
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
index
public final int index -
compiled
-
initialCompilationCancelCount
-
lastRebuildTask
-
lastResortTransparencyTask
@Nullable private ChunkRenderDispatcher.RenderChunk.ResortTransparencyTask lastResortTransparencyTask -
globalBlockEntities
-
buffers
-
bb
-
dirty
private boolean dirty -
origin
-
relativeOrigins
-
playerChanged
private boolean playerChanged
-
-
Constructor Details
-
RenderChunk
public RenderChunk(int p_202436_, int p_202437_, int p_202438_, int p_202439_)
-
-
Method Details
-
doesChunkExistAt
-
hasAllNeighbors
public boolean hasAllNeighbors() -
getBoundingBox
-
getBuffer
-
setOrigin
public void setOrigin(int p_112802_, int p_112803_, int p_112804_) -
getDistToPlayerSqr
protected double getDistToPlayerSqr() -
beginLayer
-
getCompiledChunk
-
reset
private void reset() -
releaseBuffers
public void releaseBuffers() -
getOrigin
-
setDirty
public void setDirty(boolean p_112829_) -
setNotDirty
public void setNotDirty() -
isDirty
public boolean isDirty() -
isDirtyFromPlayer
public boolean isDirtyFromPlayer() -
getRelativeOrigin
-
resortTransparency
-
cancelTasks
protected boolean cancelTasks() -
createCompileTask
public ChunkRenderDispatcher.RenderChunk.ChunkCompileTask createCompileTask(RenderRegionCache p_200438_) -
rebuildChunkAsync
-
updateGlobalBlockEntities
-
compileSync
-