Package net.minecraft.client.render
Interface VertexConsumerProvider
- All Known Implementing Classes:
OutlineVertexConsumerProvider
,VertexConsumerProvider.Immediate
Manages rendering with multiple render layers.
- Mappings:
Namespace Name official fdv
intermediary net/minecraft/class_4597
named net/minecraft/client/render/VertexConsumerProvider
-
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
(Map<RenderLayer, BufferBuilder> layerBuffers, BufferBuilder fallbackBuffer) Returns a vertex consumer provider that immediately draws the current buffer builder when a different render layer is requested exceptlayerBuffers
.immediate
(BufferBuilder 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 official a
Lfdv;a(Ledy;)Lfdv$a;
intermediary method_22991
Lnet/minecraft/class_4597;method_22991(Lnet/minecraft/class_287;)Lnet/minecraft/class_4597$class_4598;
named immediate
Lnet/minecraft/client/render/VertexConsumerProvider;immediate(Lnet/minecraft/client/render/BufferBuilder;)Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;
-
immediate
static VertexConsumerProvider.Immediate immediate(Map<RenderLayer, BufferBuilder> layerBuffers, BufferBuilder 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 official a
Lfdv;a(Ljava/util/Map;Ledy;)Lfdv$a;
intermediary method_22992
Lnet/minecraft/class_4597;method_22992(Ljava/util/Map;Lnet/minecraft/class_287;)Lnet/minecraft/class_4597$class_4598;
named immediate
Lnet/minecraft/client/render/VertexConsumerProvider;immediate(Ljava/util/Map;Lnet/minecraft/client/render/BufferBuilder;)Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;
-
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 official getBuffer
Lfdv;getBuffer(Lfed;)Leeh;
intermediary getBuffer
Lnet/minecraft/class_4597;getBuffer(Lnet/minecraft/class_1921;)Lnet/minecraft/class_4588;
named getBuffer
Lnet/minecraft/client/render/VertexConsumerProvider;getBuffer(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/VertexConsumer;
-