net.minecraft.client.render

public class WorldRenderer

implements AutoCloseable

net.minecraft.client.renderer.LevelRenderer
net.minecraft.client.renderer.LevelRenderer
net.minecraft.class_761
net.minecraft.client.render.WorldRenderer

Field summary

Modifier and TypeField
private static final Identifier
TRANSPARENCY_POST_CHAIN_ID
TRANSPARENCY_POST_CHAIN_ID
field_53900
TRANSPARENCY
private static final Identifier
ENTITY_OUTLINE_POST_CHAIN_ID
ENTITY_OUTLINE_POST_CHAIN_ID
field_53901
ENTITY_OUTLINE
private static final int
MINIMUM_TRANSPARENT_SORT_COUNT
MINIMUM_TRANSPARENT_SORT_COUNT
field_54163
MIN_TRANSPARENT_SORT_COUNT
private static final float
CHUNK_VISIBILITY_THRESHOLD
CHUNK_VISIBILITY_THRESHOLD
field_64450
MIN_CHUNK_RENDERING_OPACITY
private static final org.joml.Vector4fc
SCREEN_SIZE_TARGET_CLEAR_COLOR
SCREEN_SIZE_TARGET_CLEAR_COLOR
field_1_6302
FRAMEBUFFER_CLEAR_COLOR
private static final org.joml.Vector4fc
ENTITY_OUTLINE_CLEAR_COLOR
ENTITY_OUTLINE_CLEAR_COLOR
field_1_6301
ENTITY_OUTLINE_FRAMEBUFFER_CLEAR_COLOR
private final GameRenderer
gameRenderer
gameRenderer
field_1_5674
gameRenderer
private final EntityRenderManager
entityRenderDispatcher
entityRenderDispatcher
field_4109
entityRenderManager
private final BlockEntityRenderManager
blockEntityRenderDispatcher
blockEntityRenderDispatcher
field_27741
blockEntityRenderManager
private final BufferBuilderStorage
renderBuffers
renderBuffers
field_20951
bufferBuilders
private final RenderDispatcher
featureRenderDispatcher
featureRenderDispatcher
field_61739
renderDispatcher
private final OrderedRenderCommandQueueImpl
submitNodeStorage
submitNodeStorage
field_61738
entityRenderCommandQueue
private final BakedModelManager
modelManager
modelManager
field_1_5675
bakedModelManager
private final TextureManager
textureManager
textureManager
field_1_5677
textureManager
private final AtlasManager
atlasManager
atlasManager
field_1_5672
atlasManager
private final ShaderLoader
shaderManager
shaderManager
field_1_5676
shaderLoader
private final WorldRenderState
levelRenderState
levelRenderState
field_61737
worldRenderState
private final OptionsRenderState
optionsRenderState
optionsRenderState
field_1_2266
optionsRenderState
private SkyRenderer
skyRenderer
skyRenderer
field_53075
skyRenderer
private final CloudRenderer
cloudRenderer
cloudRenderer
field_53076
cloudRenderer
private final WorldBorderRenderer
worldBorderRenderer
worldBorderRenderer
field_53077
worldBorderRenderer
private final WeatherRenderer
weatherEffectRenderer
weatherEffectRenderer
field_53078
weatherRenderer
private final ChunkRenderingDataPreparer
sectionOcclusionGraph
sectionOcclusionGraph
field_45615
chunkRenderingDataPreparer
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<ChunkBuilder$BuiltChunk>
visibleSections
visibleSections
field_45616
builtChunks
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<ChunkBuilder$BuiltChunk>
nearbyVisibleSections
nearbyVisibleSections
field_54164
nearbyChunks
private BuiltChunkStorage
viewArea
viewArea
field_4112
chunks
private final Framebuffer
entityOutlineTarget
entityOutlineTarget
field_1_5673
entityOutlineFramebuffer
private final DefaultFramebufferSet
targets
targets
field_53081
framebufferSet
private ChunkBuilder
sectionRenderDispatcher
sectionRenderDispatcher
field_45614
chunkBuilder
private BlockPos
lastTranslucentSortBlockPos
lastTranslucentSortBlockPos
field_54160
lastTranslucencySortCameraPos
private int
translucencyResortIterationIndex
translucencyResortIterationIndex
field_54161
chunkIndex
private GpuSampler
chunkLayerSampler
chunkLayerSampler
field_64218
terrainSampler
private final GizmoCollectorImpl
renderThreadGizmos
renderThreadGizmos
field_63574
gizmoCollector
private WorldRenderer$Gizmos
finalizedGizmos
finalizedGizmos
field_64566
gizmos

Constructor summary

ModifierConstructor
public (EntityRenderManager entityRenderManager, BlockEntityRenderManager blockEntityRenderManager, BakedModelManager bakedModelManager, TextureManager textureManager, AtlasManager atlasManager, ShaderLoader shaderLoader, GameRenderer gameRenderer, int width, int height)

Method summary

Modifier and TypeMethod
public void
render(GraphicsResourceAllocator resourceAllocator, DeltaTracker deltaTracker, boolean renderOutline, CameraRenderState cameraState, org.joml.Matrix4fc modelViewMatrix, GpuBufferSlice terrainFog, org.joml.Vector4f fogColor, boolean shouldRenderSky)
render(GraphicsResourceAllocator resourceAllocator, DeltaTracker deltaTracker, boolean renderOutline, CameraRenderState cameraState, org.joml.Matrix4fc modelViewMatrix, GpuBufferSlice terrainFog, org.joml.Vector4f fogColor, boolean shouldRenderSky)
method_22710(class_9922 arg0, class_9779 arg1, boolean arg2, class_12075 arg3, org.joml.Matrix4fc arg4, GpuBufferSlice arg5, org.joml.Vector4f arg6, boolean arg7)
render(ObjectAllocator allocator, RenderTickCounter tickCounter, boolean renderBlockOutline, CameraRenderState cameraRenderState, org.joml.Matrix4fc rotationMatrix, GpuBufferSlice fogBuffer, org.joml.Vector4f fogColor, boolean renderSky)
private void
submitFeatures(LevelRenderState levelRenderState, SubmitNodeCollector submitNodeCollector, boolean renderOutline)
submitFeatures(LevelRenderState levelRenderState, SubmitNodeCollector submitNodeCollector, boolean renderOutline)
method_1_5122(class_11658 arg0, class_11659 arg1, boolean arg2)
submitFeatures(WorldRenderState worldRenderState, OrderedRenderCommandQueue queue, boolean renderBlockOutline)
private void
repositionCamera(CameraRenderState camera)
repositionCamera(CameraRenderState camera)
method_1_2234(class_12075 arg0)
prepareForRender(CameraRenderState cameraRenderState)
private void
addSkyPass(FrameGraphBuilder frame, CameraRenderState cameraState, GpuBufferSlice skyFog)
addSkyPass(FrameGraphBuilder frame, CameraRenderState cameraState, GpuBufferSlice skyFog)
method_62200(class_9909 arg0, class_12075 arg1, GpuBufferSlice arg2)
renderSky(FrameGraphBuilder frameGraphBuilder, CameraRenderState cameraRenderState, GpuBufferSlice fogBuffer)
private void
addMainPass(FrameGraphBuilder frame, FeatureRenderDispatcher$PreparedFrame featureFrame, GpuBufferSlice terrainFog, LevelRenderState levelRenderState, ProfilerFiller profiler, ChunkSectionsToRender chunkSectionsToRender)
addMainPass(FrameGraphBuilder frame, FeatureRenderDispatcher$PreparedFrame featureFrame, GpuBufferSlice terrainFog, LevelRenderState levelRenderState, ProfilerFiller profiler, ChunkSectionsToRender chunkSectionsToRender)
method_62202(class_9909 arg0, class_11684$class_1_875 arg1, GpuBufferSlice arg2, class_11658 arg3, class_3695 arg4, class_11532 arg5)
renderMain(FrameGraphBuilder frameGraphBuilder, RenderDispatcher$PreparedFrame preparedFrame, GpuBufferSlice fogBuffer, WorldRenderState worldRenderState, Profiler profiler, SectionRenderState sectionRenderState)
private void
addCloudsPass(FrameGraphBuilder frame, CloudStatus cloudStatus, Vec3 cameraPosition, long gameTime, float partialTicks, int cloudColor, float cloudHeight, int cloudRange)
addCloudsPass(FrameGraphBuilder frame, CloudStatus cloudStatus, Vec3 cameraPosition, long gameTime, float partialTicks, int cloudColor, float cloudHeight, int cloudRange)
method_62204(class_9909 arg0, class_4063 arg1, class_243 arg2, long arg3, float arg4, int arg5, float arg6, int arg7)
renderClouds(FrameGraphBuilder frameGraphBuilder, CloudRenderMode cloudRenderMode, Vec3d cameraPos, long time, float tickProgress, int color, float cloudHeight, int cloudRenderDistance)
private void
addWeatherPass(FrameGraphBuilder frame, GpuBufferSlice fog)
addWeatherPass(FrameGraphBuilder frame, GpuBufferSlice fog)
method_62203(class_9909 arg0, GpuBufferSlice arg1)
renderWeather(FrameGraphBuilder frameGraphBuilder, GpuBufferSlice fogBuffer)
private void
addAlwaysOnTopPass(FrameGraphBuilder frame, FeatureRenderDispatcher$PreparedFrame featureFrame, GpuBufferSlice fog)
addAlwaysOnTopPass(FrameGraphBuilder frame, FeatureRenderDispatcher$PreparedFrame featureFrame, GpuBufferSlice fog)
method_1_5121(class_9909 arg0, class_11684$class_1_875 arg1, GpuBufferSlice arg2)
renderOnTopElements(FrameGraphBuilder frameGraphBuilder, RenderDispatcher$PreparedFrame prepareFrame, GpuBufferSlice fogBuffer)
public SectionRenderState
prepareChunkRenders(org.joml.Matrix4fc modelViewMatrix)
prepareChunkRenders(org.joml.Matrix4fc modelViewMatrix)
method_1_2233(org.joml.Matrix4fc arg0)
createSectionRenderState(org.joml.Matrix4fc rotationMatrix)
private void
compileSections(CameraRenderState camera)
compileSections(CameraRenderState camera)
method_3269(class_12075 arg0)
updateChunks(CameraRenderState cameraRenderState)
private void
checkPoseStack(PoseStack poseStack)
checkPoseStack(PoseStack poseStack)
method_22979(class_4587 arg0)
checkEmpty(MatrixStack matrices)
private void
submitEntities(PoseStack poseStack, LevelRenderState levelRenderState, SubmitNodeCollector output)
submitEntities(PoseStack poseStack, LevelRenderState levelRenderState, SubmitNodeCollector output)
method_72916(class_4587 arg0, class_11658 arg1, class_11659 arg2)
pushEntityRenders(MatrixStack matrices, WorldRenderState renderStates, OrderedRenderCommandQueue queue)
private void
submitBlockEntities(PoseStack poseStack, LevelRenderState levelRenderState, SubmitNodeCollector submitNodeCollector)
submitBlockEntities(PoseStack poseStack, LevelRenderState levelRenderState, SubmitNodeCollector submitNodeCollector)
method_62208(class_4587 arg0, class_11658 arg1, class_11659 arg2)
renderBlockEntities(MatrixStack matrices, WorldRenderState renderStates, OrderedRenderCommandQueue queue)
private void
submitBlockDestroyAnimation(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, LevelRenderState levelRenderState)
submitBlockDestroyAnimation(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, LevelRenderState levelRenderState)
method_62206(class_4587 arg0, class_11659 arg1, class_11658 arg2)
renderBlockDamage(MatrixStack matrices, OrderedRenderCommandQueue queue, WorldRenderState renderStates)
private void
submitBlockOutline(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, LevelRenderState levelRenderState)
submitBlockOutline(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, LevelRenderState levelRenderState)
method_62210(class_4587 arg0, class_11659 arg1, class_11658 arg2)
renderTargetBlockOutline(MatrixStack matrices, OrderedRenderCommandQueue queue, WorldRenderState renderStates)
private void
submitHitOutline(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, RenderType renderType, BlockOutlineRenderState state, int color, float width, boolean afterTerrain)
submitHitOutline(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, RenderType renderType, BlockOutlineRenderState state, int color, float width, boolean afterTerrain)
method_22712(class_4587 arg0, class_11659 arg1, class_1921 arg2, class_12074 arg3, int arg4, float arg5, boolean arg6)
drawBlockOutline(MatrixStack matrices, OrderedRenderCommandQueue queue, RenderLayer renderLayer, OutlineRenderState state, int color, float lineWidth, boolean afterTerrain)
public void
resize(int width, int height)
resize(int width, int height)
method_3242(int arg0, int arg1)
onResized(int width, int height)
public void
endFrame()
endFrame()
method_71118()
rotate()
public void
close()
close()
public void
doEntityOutline()
doEntityOutline()
method_3254()
drawEntityOutlinesFramebuffer()
public void
invalidateCompiledGeometry(ClientLevel level, Options options, Camera camera, BlockColors blockColors)
invalidateCompiledGeometry(ClientLevel level, Options options, Camera camera, BlockColors blockColors)
method_1_4861(class_638 arg0, class_315 arg1, class_4184 arg2, class_324 arg3)
rebuildChunks(ClientWorld world, GameOptions options, Camera camera, BlockColors blockColors)
private PostEffectProcessor
getTransparencyChain()
getTransparencyChain()
method_62907()
getTransparencyPostEffectProcessor()
private void
scheduleTranslucentSectionResort(Vec3 cameraPos)
scheduleTranslucentSectionResort(Vec3 cameraPos)
method_62198(class_243 arg0)
translucencySort(Vec3d cameraPos)
private void
scheduleResort(SectionRenderDispatcher$RenderSection section, TranslucencyPointOfView pointOfView, Vec3 cameraPos, boolean blockPosChanged, boolean isNearby)
scheduleResort(SectionRenderDispatcher$RenderSection section, TranslucencyPointOfView pointOfView, Vec3 cameraPos, boolean blockPosChanged, boolean isNearby)
method_64060(class_846$class_851 arg0, class_10196 arg1, class_243 arg2, boolean arg3, boolean arg4)
scheduleChunkTranslucencySort(ChunkBuilder$BuiltChunk chunk, NormalizedRelativePos relativePos, Vec3d cameraPos, boolean needsUpdate, boolean ignoreCameraAlignment)
public void
clearVisibleSections()
clearVisibleSections()
method_64059()
clearBuiltAndNearbyChunks()
public void
resetLevelRenderData()
resetLevelRenderData()
method_1_4863()
clear()
public boolean
hasRenderedAllSections()
hasRenderedAllSections()
method_3281()
isTerrainRenderComplete()
public boolean
isSectionCompiledAndVisible(BlockPos blockPos)
isSectionCompiledAndVisible(BlockPos blockPos)
method_40050(class_2338 arg0)
isRenderingReady(BlockPos pos)
public ChunkBuilder
sectionRenderDispatcher()
sectionRenderDispatcher()
method_34810()
getChunkBuilder()
public EntityRenderManager
entityRenderDispatcher()
entityRenderDispatcher()
method_1_4860()
getEntityRenderManager()
public BlockEntityRenderManager
blockEntityRenderDispatcher()
blockEntityRenderDispatcher()
method_1_4859()
getBlockEntityRenderManager()
public Framebuffer
entityOutlineTarget()
entityOutlineTarget()
method_22990()
getEntityOutlinesFramebuffer()
public Framebuffer
translucentTarget()
translucentTarget()
method_29360()
getTranslucentFramebuffer()
public Framebuffer
itemEntityTarget()
itemEntityTarget()
method_29361()
getEntityFramebuffer()
public Framebuffer
particlesTarget()
particlesTarget()
method_29362()
getParticlesFramebuffer()
public Framebuffer
weatherTarget()
weatherTarget()
method_29363()
getWeatherFramebuffer()
public Framebuffer
cloudsTarget()
cloudsTarget()
method_29364()
getCloudsFramebuffer()
public CloudRenderer
cloudRenderer()
cloudRenderer()
method_62196()
getCloudRenderer()
public SkyRenderer
skyRenderer()
skyRenderer()
method_1_4864()
getSkyRenderer()
public WeatherRenderer
weatherEffectRenderer()
weatherEffectRenderer()
method_1_4866()
getWeatherRenderer()
public WorldBorderRenderer
worldBorderRenderer()
worldBorderRenderer()
method_1_4867()
getWorldBorderRenderer()
public BuiltChunkStorage
viewArea()
viewArea()
method_1_4865()
getChunks()
public it.unimi.dsi.fastutil.objects.ObjectArrayList<ChunkBuilder$BuiltChunk>
visibleSections()
visibleSections()
method_62220()
getBuiltChunks()
public it.unimi.dsi.fastutil.objects.ObjectArrayList<ChunkBuilder$BuiltChunk>
nearbyVisibleSections()
nearbyVisibleSections()
method_1_4862()
getNearbyChunks()
public it.unimi.dsi.fastutil.longs.LongCollection
expectedChunks()
expectedChunks()
method_1_6185()
getLoadedChunkPositions()
public ChunkRenderingDataPreparer
sectionOcclusionGraph()
sectionOcclusionGraph()
method_62221()
getChunkRenderingDataPreparer()
public GizmoDrawing$CollectorScope
collectPerFrameRenderThreadGizmos()
collectPerFrameRenderThreadGizmos()
method_75414()
startDrawingGizmos()
private void
finalizeGizmoCollection()
finalizeGizmoCollection()
method_76647()
collectGizmos()
public void
addMainThreadGizmos(List<SimpleGizmoCollector$GizmoInstance> mainThreadGizmos)
addMainThreadGizmos(List<SimpleGizmoCollector$GizmoInstance> mainThreadGizmos)
method_1_4858(List<class_12185$class_12186> arg0)
addGizmos(List<GizmoCollectorImpl$Entry> gizmos)