net.minecraft.client.renderer

public class LevelRenderer

implements ResourceManagerReloadListener, AutoCloseable

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

Field summary

Modifier and TypeField
private static final Identifier
f
TRANSPARENCY_POST_CHAIN_ID
field_53900
TRANSPARENCY
private static final Identifier
g
ENTITY_OUTLINE_POST_CHAIN_ID
field_53901
ENTITY_OUTLINE
public static final int
a
SECTION_SIZE
field_32759
SECTION_SIZE
public static final int
b
HALF_SECTION_SIZE
field_34812
HALF_SECTION_SIZE
public static final int
c
NEARBY_SECTION_DISTANCE_IN_BLOCKS
field_54162
NEARBY_SECTION_DISTANCE
private static final int
h
MINIMUM_TRANSPARENT_SORT_COUNT
field_54163
MIN_TRANSPARENT_SORT_COUNT
private static final float
i
CHUNK_VISIBILITY_THRESHOLD
field_64450
field_64450
private final Minecraft
j
minecraft
field_4088
client
private final EntityRenderDispatcher
k
entityRenderDispatcher
field_4109
entityRenderManager
private final BlockEntityRenderDispatcher
l
blockEntityRenderDispatcher
field_27741
blockEntityRenderManager
private final RenderBuffers
m
renderBuffers
field_20951
bufferBuilders
private SkyRenderer
n
skyRenderer
field_53075
skyRendering
private final CloudRenderer
o
cloudRenderer
field_53076
cloudRenderer
private final WorldBorderRenderer
p
worldBorderRenderer
field_53077
worldBorderRendering
private final WeatherEffectRenderer
q
weatherEffectRenderer
field_53078
weatherRendering
private final ParticlesRenderState
r
particlesRenderState
field_62647
particleBatch
public final DebugRenderer
d
debugRenderer
field_63067
debugRenderer
public final GameTestBlockHighlightRenderer
e
gameTestBlockHighlightRenderer
field_63068
gameTestDebugRenderer
private ClientLevel
s
level
field_4085
world
private final SectionOcclusionGraph
t
sectionOcclusionGraph
field_45615
chunkRenderingDataPreparer
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher$RenderSection>
u
visibleSections
field_45616
builtChunks
private final it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher$RenderSection>
v
nearbyVisibleSections
field_54164
nearbyChunks
private ViewArea
w
viewArea
field_4112
chunks
private int
x
ticks
field_4073
ticks
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BlockDestructionProgress>
y
destroyingBlocks
field_4058
blockBreakingInfos
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<SortedSet<BlockDestructionProgress>>
z
destructionProgress
field_20950
blockBreakingProgressions
private RenderTarget
A
entityOutlineTarget
field_53080
entityOutlineFramebuffer
private final LevelTargetBundle
B
targets
field_53081
framebufferSet
private int
C
lastCameraSectionX
field_4084
cameraChunkX
private int
D
lastCameraSectionY
field_4105
cameraChunkY
private int
E
lastCameraSectionZ
field_4121
cameraChunkZ
private double
F
prevCamX
field_4069
lastCameraX
private double
G
prevCamY
field_4081
lastCameraY
private double
H
prevCamZ
field_4096
lastCameraZ
private double
I
prevCamRotX
field_4115
lastCameraPitch
private double
J
prevCamRotY
field_4064
lastCameraYaw
private SectionRenderDispatcher
K
sectionRenderDispatcher
field_45614
chunkBuilder
private int
L
lastViewDistance
field_4062
viewDistance
private boolean
M
captureFrustum
field_62945
captureFrustum
private Frustum
N
capturedFrustum
field_4056
capturedFrustum
private BlockPos
O
lastTranslucentSortBlockPos
field_54160
lastTranslucencySortCameraPos
private int
P
translucencyResortIterationIndex
field_54161
chunkIndex
private final LevelRenderState
Q
levelRenderState
field_61737
worldRenderState
private final SubmitNodeStorage
R
submitNodeStorage
field_61738
entityRenderCommandQueue
private final FeatureRenderDispatcher
S
featureRenderDispatcher
field_61739
entityRenderDispatcher
private GpuSampler
T
chunkLayerSampler
field_64218
terrainSampler
private final SimpleGizmoCollector
U
collectedGizmos
field_63574
gizmoCollector

Constructor summary

ModifierConstructor
public (Minecraft client, EntityRenderDispatcher entityRenderManager, BlockEntityRenderDispatcher blockEntityRenderManager, RenderBuffers bufferBuilders, LevelRenderState worldRenderState, FeatureRenderDispatcher entityRenderDispatcher)

Method summary

Modifier and TypeMethod
public void
close()
close()
public void
a(baz arg0)
onResourceManagerReload(ResourceManager arg0)
method_14491(class_3300 arg0)
reload(ResourceManager arg0)
public void
a()
initOutline()
method_3296()
loadEntityOutlinePostProcessor()
private PostChain
B()
getTransparencyChain()
method_62907()
getTransparencyPostEffectProcessor()
public void
b()
doEntityOutline()
method_3254()
drawEntityOutlinesFramebuffer()
protected boolean
c()
shouldShowEntityOutlines()
method_3270()
canDrawEntityOutlines()
public void
a(hec arg0)
setLevel(ClientLevel arg0)
method_3244(class_638 arg0)
setWorld(ClientWorld world)
private void
C()
clearVisibleSections()
method_64059()
clear()
public void
d()
allChanged()
method_3279()
reload()
public void
a(int arg0, int arg1)
resize(int arg0, int arg1)
method_3242(int arg0, int arg1)
onResized(int width, int height)
public String
e()
getSectionStatistics()
method_3289()
getChunksDebugString()
public SectionRenderDispatcher
f()
getSectionRenderDispatcher()
method_34810()
getChunkBuilder()
public double
g()
getTotalSections()
method_34811()
getChunkCount()
public double
h()
getLastViewDistance()
method_34812()
getViewDistance()
public int
i()
countRenderedSections()
method_3246()
getCompletedChunkCount()
public void
j()
onChangeMaxAnisotropy()
method_76296()
refreshTerrainSampler()
public String
k()
getEntityStatistics()
method_3272()
getEntitiesDebugString()
private void
a(gdk arg0, hpu arg1, boolean arg2)
cullTerrain(Camera arg0, Frustum arg1, boolean arg2)
method_74752(class_4184 arg0, class_4604 arg1, boolean arg2)
updateCamera(Camera camera, Frustum frustum, boolean spectator)
public static Frustum
a(hpu arg0)
offsetFrustum(Frustum arg0)
method_52816(class_4604 arg0)
offsetFrustum(Frustum frustum)
private void
b(hpu arg0)
applyFrustum(Frustum arg0)
method_38551(class_4604 arg0)
applyFrustum(Frustum frustum)
public void
a(hpp$a arg0)
addRecentlyCompiledSection(SectionRenderDispatcher$RenderSection arg0)
method_38550(class_846$class_851 arg0)
addBuiltChunk(ChunkBuilder$BuiltChunk chunk)
private Frustum
a(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, fse arg2)
prepareCullFrustum(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, Vec3 arg2)
method_32133(org.joml.Matrix4f arg0, org.joml.Matrix4f arg1, class_243 arg2)
setupFrustum(org.joml.Matrix4f posMatrix, org.joml.Matrix4f projMatrix, Vec3d pos)
public void
a(fxl arg0, gds arg1, boolean arg2, gdk arg3, org.joml.Matrix4f arg4, org.joml.Matrix4f arg5, org.joml.Matrix4f arg6, GpuBufferSlice arg7, org.joml.Vector4f arg8, boolean arg9)
renderLevel(GraphicsResourceAllocator arg0, DeltaTracker arg1, boolean arg2, Camera arg3, org.joml.Matrix4f arg4, org.joml.Matrix4f arg5, org.joml.Matrix4f arg6, GpuBufferSlice arg7, org.joml.Vector4f arg8, boolean arg9)
method_22710(class_9922 arg0, class_9779 arg1, boolean arg2, class_4184 arg3, org.joml.Matrix4f arg4, org.joml.Matrix4f arg5, org.joml.Matrix4f arg6, GpuBufferSlice arg7, org.joml.Vector4f arg8, boolean arg9)
render(ObjectAllocator allocator, RenderTickCounter tickCounter, boolean renderBlockOutline, Camera camera, org.joml.Matrix4f positionMatrix, org.joml.Matrix4f arg5, org.joml.Matrix4f projectionMatrix, GpuBufferSlice fogBuffer, org.joml.Vector4f fogColor, boolean renderSky)
private void
a(fvn arg0, hpu arg1, org.joml.Matrix4f arg2, GpuBufferSlice arg3, boolean arg4, ign arg5, gds arg6, bzk arg7)
addMainPass(FrameGraphBuilder arg0, Frustum arg1, org.joml.Matrix4f arg2, GpuBufferSlice arg3, boolean arg4, LevelRenderState arg5, DeltaTracker arg6, ProfilerFiller arg7)
method_62202(class_9909 arg0, class_4604 arg1, org.joml.Matrix4f arg2, GpuBufferSlice arg3, boolean arg4, class_11658 arg5, class_9779 arg6, class_3695 arg7)
renderMain(FrameGraphBuilder frameGraphBuilder, Frustum frustum, org.joml.Matrix4f posMatrix, GpuBufferSlice fogBuffer, boolean renderBlockOutline, WorldRenderState state, RenderTickCounter tickCounter, Profiler profiler)
private void
a(fvn arg0, GpuBufferSlice arg1)
addParticlesPass(FrameGraphBuilder arg0, GpuBufferSlice arg1)
method_62201(class_9909 arg0, GpuBufferSlice arg1)
renderParticles(FrameGraphBuilder frameGraphBuilder, GpuBufferSlice fogBuffer)
private void
a(fvn arg0, gdo arg1, fse arg2, long arg3, float arg4, int arg5, float arg6)
addCloudsPass(FrameGraphBuilder arg0, CloudStatus arg1, Vec3 arg2, long arg3, float arg4, int arg5, float arg6)
method_62204(class_9909 arg0, class_4063 arg1, class_243 arg2, long arg3, float arg4, int arg5, float arg6)
renderClouds(FrameGraphBuilder frameGraphBuilder, CloudRenderMode mode, Vec3d cameraPos, long arg3, float arg4, int arg5, float arg6)
private void
b(fvn arg0, GpuBufferSlice arg1)
addWeatherPass(FrameGraphBuilder arg0, GpuBufferSlice arg1)
method_62203(class_9909 arg0, GpuBufferSlice arg1)
renderWeather(FrameGraphBuilder frameGraphBuilder, GpuBufferSlice arg1)
private void
a(fvn arg0, igm arg1, GpuBufferSlice arg2, org.joml.Matrix4f arg3)
addLateDebugPass(FrameGraphBuilder arg0, CameraRenderState arg1, GpuBufferSlice arg2, org.joml.Matrix4f arg3)
method_62199(class_9909 arg0, class_12075 arg1, GpuBufferSlice arg2, org.joml.Matrix4f arg3)
renderLateDebug(FrameGraphBuilder frameGraphBuilder, CameraRenderState cameraRenderState, GpuBufferSlice fogBuffer, org.joml.Matrix4f arg3)
private void
a(gdk arg0, hpu arg1, gds arg2, ign arg3)
extractVisibleEntities(Camera arg0, Frustum arg1, DeltaTracker arg2, LevelRenderState arg3)
method_72917(class_4184 arg0, class_4604 arg1, class_9779 arg2, class_11658 arg3)
fillEntityRenderStates(Camera camera, Frustum frustum, RenderTickCounter tickCounter, WorldRenderState renderStates)
private void
a(fye arg0, ign arg1, hll arg2)
submitEntities(PoseStack arg0, LevelRenderState arg1, SubmitNodeCollector arg2)
method_72916(class_4587 arg0, class_11658 arg1, class_11659 arg2)
pushEntityRenders(MatrixStack matrices, WorldRenderState renderStates, OrderedRenderCommandQueue queue)
private void
a(gdk arg0, float arg1, ign arg2)
extractVisibleBlockEntities(Camera arg0, float arg1, LevelRenderState arg2)
method_74314(class_4184 arg0, float arg1, class_11658 arg2)
fillBlockEntityRenderStates(Camera camera, float tickProgress, WorldRenderState renderStates)
private void
a(fye arg0, ign arg1, hlm arg2)
submitBlockEntities(PoseStack arg0, LevelRenderState arg1, SubmitNodeStorage arg2)
method_62208(class_4587 arg0, class_11658 arg1, class_11661 arg2)
renderBlockEntities(MatrixStack matrices, WorldRenderState renderStates, OrderedRenderCommandQueueImpl queue)
private void
a(gdk arg0, ign arg1)
extractBlockDestroyAnimation(Camera arg0, LevelRenderState arg1)
method_74922(class_4184 arg0, class_11658 arg1)
fillBlockBreakingProgressRenderState(Camera camera, WorldRenderState renderStates)
private void
a(fye arg0, hkk$a arg1, ign arg2)
renderBlockDestroyAnimation(PoseStack arg0, MultiBufferSource$BufferSource arg1, LevelRenderState arg2)
method_62206(class_4587 arg0, class_4597$class_4598 arg1, class_11658 arg2)
renderBlockDamage(MatrixStack matrices, VertexConsumerProvider$Immediate immediate, WorldRenderState renderStates)
private void
b(gdk arg0, ign arg1)
extractBlockOutline(Camera arg0, LevelRenderState arg1)
method_74923(class_4184 arg0, class_11658 arg1)
fillEntityOutlineRenderStates(Camera camera, WorldRenderState renderStates)
private void
a(hkk$a arg0, fye arg1, boolean arg2, ign arg3)
renderBlockOutline(MultiBufferSource$BufferSource arg0, PoseStack arg1, boolean arg2, LevelRenderState arg3)
method_62210(class_4597$class_4598 arg0, class_4587 arg1, boolean arg2, class_11658 arg3)
renderTargetBlockOutline(VertexConsumerProvider$Immediate immediate, MatrixStack matrices, boolean renderBlockOutline, WorldRenderState renderStates)
private void
a(fye arg0)
checkPoseStack(PoseStack arg0)
method_22979(class_4587 arg0)
checkEmpty(MatrixStack matrices)
private EntityRenderState
a(cgi arg0, float arg1)
extractEntity(Entity arg0, float arg1)
method_72914(class_1297 arg0, float arg1)
getAndUpdateRenderState(Entity entity, float tickProgress)
private void
a(fse arg0)
scheduleTranslucentSectionResort(Vec3 arg0)
method_62198(class_243 arg0)
translucencySort(Vec3d cameraPos)
private void
a(hpp$a arg0, hpq arg1, fse arg2, boolean arg3, boolean arg4)
scheduleResort(SectionRenderDispatcher$RenderSection arg0, TranslucencyPointOfView arg1, Vec3 arg2, boolean arg3, boolean arg4)
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)
private ChunkSectionsToRender
a(org.joml.Matrix4fc arg0, double arg1, double arg2, double arg3)
prepareChunkRenders(org.joml.Matrix4fc arg0, double arg1, double arg2, double arg3)
method_72157(org.joml.Matrix4fc arg0, double arg1, double arg2, double arg3)
renderBlockLayers(org.joml.Matrix4fc matrix, double cameraX, double cameraY, double cameraZ)
public void
l()
endFrame()
method_71118()
rotate()
public void
m()
captureFrustum()
method_35775()
captureFrustum()
public void
n()
killFrustum()
method_35776()
killFrustum()
public void
a(gdk arg0)
tick(Camera arg0)
method_3252(class_4184 arg0)
tick(Camera camera)
private void
D()
removeBlockBreakingProgress()
method_74921()
updateBlockBreakingProgress()
private void
a(awe arg0)
removeProgress(BlockDestructionProgress arg0)
method_22987(class_3191 arg0)
removeBlockBreakingInfo(BlockBreakingInfo info)
private void
a(fvn arg0, gdk arg1, GpuBufferSlice arg2)
addSkyPass(FrameGraphBuilder arg0, Camera arg1, GpuBufferSlice arg2)
method_62200(class_9909 arg0, class_4184 arg1, GpuBufferSlice arg2)
renderSky(FrameGraphBuilder frameGraphBuilder, Camera camera, GpuBufferSlice fogBuffer)
private boolean
b(gdk arg0)
doesMobEffectBlockSky(Camera arg0)
method_43788(class_4184 arg0)
hasBlindnessOrDarkness(Camera camera)
private void
c(gdk arg0)
compileSections(Camera arg0)
method_3269(class_4184 arg0)
updateChunks(Camera camera)
private void
a(fye arg0, fyh arg1, double arg2, double arg3, double arg4, igl arg5, int arg6, float arg7)
renderHitOutline(PoseStack arg0, VertexConsumer arg1, double arg2, double arg3, double arg4, BlockOutlineRenderState arg5, int arg6, float arg7)
method_22712(class_4587 arg0, class_4588 arg1, double arg2, double arg3, double arg4, class_12074 arg5, int arg6, float arg7)
drawBlockOutline(MatrixStack matrices, VertexConsumer vertexConsumer, double x, double y, double z, OutlineRenderState state, int color, float lineWidth)
public void
a(dul arg0, is arg1, emz arg2, emz arg3, int arg4)
blockChanged(BlockGetter arg0, BlockPos arg1, BlockState arg2, BlockState arg3, int arg4)
method_8570(class_1922 arg0, class_2338 arg1, class_2680 arg2, class_2680 arg3, int arg4)
updateBlock(BlockView world, BlockPos pos, BlockState oldState, BlockState newState, int flags)
private void
a(is arg0, boolean arg1)
setBlockDirty(BlockPos arg0, boolean arg1)
method_16037(class_2338 arg0, boolean arg1)
scheduleSectionRender(BlockPos pos, boolean important)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
setBlocksDirty(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
method_18146(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
scheduleBlockRenders(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
public void
a(is arg0, emz arg1, emz arg2)
setBlockDirty(BlockPos arg0, BlockState arg1, BlockState arg2)
method_21596(class_2338 arg0, class_2680 arg1, class_2680 arg2)
scheduleBlockRerenderIfNeeded(BlockPos pos, BlockState old, BlockState updated)
public void
a(int arg0, int arg1, int arg2)
setSectionDirtyWithNeighbors(int arg0, int arg1, int arg2)
method_18145(int arg0, int arg1, int arg2)
scheduleChunkRenders3x3x3(int x, int y, int z)
public void
b(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
setSectionRangeDirty(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
method_62219(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
scheduleChunkRenders(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
public void
b(int arg0, int arg1, int arg2)
setSectionDirty(int arg0, int arg1, int arg2)
method_8571(int arg0, int arg1, int arg2)
scheduleChunkRender(int chunkX, int chunkY, int chunkZ)
private void
a(int arg0, int arg1, int arg2, boolean arg3)
setSectionDirty(int arg0, int arg1, int arg2, boolean arg3)
method_3295(int arg0, int arg1, int arg2, boolean arg3)
scheduleChunkRender(int x, int y, int z, boolean important)
public void
a(long arg0)
onSectionBecomingNonEmpty(long arg0)
method_62908(long arg0)
onChunkUnload(long sectionPos)
public void
a(int arg0, is arg1, int arg2)
destroyBlockProgress(int arg0, BlockPos arg1, int arg2)
method_8569(int arg0, class_2338 arg1, int arg2)
setBlockBreakingInfo(int entityId, BlockPos pos, int stage)
public boolean
o()
hasRenderedAllSections()
method_3281()
isTerrainRenderComplete()
public void
a(dum arg0)
onChunkReadyToRender(ChunkPos arg0)
method_65201(class_1923 arg0)
scheduleNeighborUpdates(ChunkPos chunkPos)
public void
p()
needsUpdate()
method_3292()
scheduleTerrainUpdate()
public static int
a(dui arg0, is arg1)
getLightColor(BlockAndTintGetter arg0, BlockPos arg1)
method_23794(class_1920 arg0, class_2338 arg1)
getLightmapCoordinates(BlockRenderView world, BlockPos pos)
public static int
a(hke$a arg0, dui arg1, emz arg2, is arg3)
getLightColor(LevelRenderer$BrightnessGetter arg0, BlockAndTintGetter arg1, BlockState arg2, BlockPos arg3)
method_23793(class_761$class_10948 arg0, class_1920 arg1, class_2680 arg2, class_2338 arg3)
getLightmapCoordinates(WorldRenderer$BrightnessGetter brightnessGetter, BlockRenderView world, BlockState state, BlockPos pos)
public boolean
a(is arg0)
isSectionCompiledAndVisible(BlockPos arg0)
method_40050(class_2338 arg0)
isRenderingReady(BlockPos pos)
public RenderTarget
q()
entityOutlineTarget()
method_22990()
getEntityOutlinesFramebuffer()
public RenderTarget
r()
getTranslucentTarget()
method_29360()
getTranslucentFramebuffer()
public RenderTarget
s()
getItemEntityTarget()
method_29361()
getEntityFramebuffer()
public RenderTarget
t()
getParticlesTarget()
method_29362()
getParticlesFramebuffer()
public RenderTarget
u()
getWeatherTarget()
method_29363()
getWeatherFramebuffer()
public RenderTarget
v()
getCloudsTarget()
method_29364()
getCloudsFramebuffer()
public it.unimi.dsi.fastutil.objects.ObjectArrayList<SectionRenderDispatcher$RenderSection>
w()
getVisibleSections()
method_62220()
getBuiltChunks()
public SectionOcclusionGraph
x()
getSectionOcclusionGraph()
method_62221()
getChunkRenderingDataPreparer()
public Frustum
y()
getCapturedFrustum()
method_62222()
getCapturedFrustum()
public CloudRenderer
z()
getCloudRenderer()
method_62196()
getCloudRenderer()
public Gizmos$TemporaryCollection
A()
collectPerFrameGizmos()
method_75414()
startDrawingGizmos()