Interface LevelRenderContext
- All Superinterfaces:
AbstractLevelRenderContext, LevelTerrainRenderContext
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.MultiBufferSourceTheMultiBufferSourceinstance being used by the level renderer for most non-terrain renders.com.mojang.blaze3d.vertex.PoseStacknet.minecraft.client.renderer.SubmitNodeCollectorMethods inherited from interface AbstractLevelRenderContext
gameRenderer, levelRenderer, levelStateMethods inherited from interface LevelTerrainRenderContext
sectionsToRender
-
Method Details
-
submitNodeCollector
net.minecraft.client.renderer.SubmitNodeCollector submitNodeCollector() -
poseStack
com.mojang.blaze3d.vertex.PoseStack poseStack() -
bufferSource
net.minecraft.client.renderer.MultiBufferSource bufferSource()TheMultiBufferSourceinstance being used by the level renderer for most non-terrain renders. Generally this will be better for most use cases because quads for the same layer can be buffered incrementally and then drawn all at once by the level renderer.IMPORTANT - all vertex coordinates sent to consumers should be relative to the camera to be consistent with other quads emitted by the level renderer and other mods. If this isn't possible, caller should use a separate "immediate" instance.
Renders that cannot draw in one of the supported events must be drawn directly to the frame buffer, preferably in
LevelRenderEvents.END_MAINto avoid being overdrawn or cleared.
-