Package net.minecraft.client.render
Interface VertexConsumerProvider
- All Known Implementing Classes:
OutlineVertexConsumerProvider
,VertexConsumerProvider.Immediate
Manages rendering with multiple render layers.
- Mappings:
Namespace Name named net/minecraft/client/render/VertexConsumerProvider
intermediary net/minecraft/class_4597
official gez
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested except for render layers specified in the constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetBuffer
(RenderLayer layer) Starts building a buffer that will be drawn withlayer
.immediate
(SequencedMap<RenderLayer, BufferAllocator> layerBuffers, BufferAllocator fallbackBuffer) Returns a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested exceptlayerBuffers
.immediate
(BufferAllocator buffer) Returns a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested.
-
Method Details
-
immediate
Returns a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested..- Returns:
- a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested
- Mappings:
Namespace Name Mixin selector named immediate
Lnet/minecraft/client/render/VertexConsumerProvider;immediate(Lnet/minecraft/client/util/BufferAllocator;)Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;
intermediary method_22991
Lnet/minecraft/class_4597;method_22991(Lnet/minecraft/class_9799;)Lnet/minecraft/class_4597$class_4598;
official a
Lgez;a(Lfbf;)Lgez$a;
-
immediate
static VertexConsumerProvider.Immediate immediate(SequencedMap<RenderLayer, BufferAllocator> layerBuffers, BufferAllocator fallbackBuffer) Returns a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested exceptlayerBuffers
..layerBuffers
will not be drawn immediately after switching the current render layer. The caller of this method can control when to draw these render layers. For example, the translucent render layer should be drawn in a later stage so the other things behind translucent objects are visible.- Returns:
- a vertex consumer provider that immediately draws the current
buffer builder when a different render layer is requested except
layerBuffers
- Mappings:
Namespace Name Mixin selector named immediate
Lnet/minecraft/client/render/VertexConsumerProvider;immediate(Ljava/util/SequencedMap;Lnet/minecraft/client/util/BufferAllocator;)Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;
intermediary method_22992
Lnet/minecraft/class_4597;method_22992(Ljava/util/SequencedMap;Lnet/minecraft/class_9799;)Lnet/minecraft/class_4597$class_4598;
official a
Lgez;a(Ljava/util/SequencedMap;Lfbf;)Lgez$a;
-
getBuffer
Starts building a buffer that will be drawn withlayer
.The returned vertex consumer can only be safely used until this method is called with a different render layer.
Note that the user of this method cannot modify states controlled by the render layer. Those states will be overridden by the render layer before drawing them. If you need to set states yourself, consider using
Tessellator
or making a custom render layer.- Mappings:
Namespace Name Mixin selector named getBuffer
Lnet/minecraft/client/render/VertexConsumerProvider;getBuffer(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/VertexConsumer;
intermediary getBuffer
Lnet/minecraft/class_4597;getBuffer(Lnet/minecraft/class_1921;)Lnet/minecraft/class_4588;
official getBuffer
Lgez;getBuffer(Lgfh;)Lfbm;
-