consumers

@Nullable()
abstract VertexConsumerProvider consumers()

The {@code VertexConsumerProvider} instance being used by the world renderer for most non-terrain renders.Generally this will be better for most use cases because quads for the same layer can be bufferedincrementally and then drawn all at once by the world renderer.

IMPORTANT - all vertex coordinates sent to consumers should be relative to the camera tobe consistent with other quads emitted by the world renderer and other mods. If this isn'tpossible, caller should use a separate "immediate" instance.

This property is {@code null} before BEFORE_ENTITIES and after BEFORE_DEBUG_RENDER because the consumer buffers are not available before ordrawn after that in vanilla world rendering. Renders that cannot draw in one of the supported eventsmust be drawn directly to the frame buffer, preferably in LAST to avoid beingoverdrawn or cleared.

Sources

jvm source
Link copied to clipboard