Package net.minecraft.client.render
Class VertexConsumerProvider.Immediate
java.lang.Object
net.minecraft.client.render.VertexConsumerProvider.Immediate
- All Implemented Interfaces:
VertexConsumerProvider
- Enclosing interface:
VertexConsumerProvider
@Environment(CLIENT)
public static class VertexConsumerProvider.Immediate
extends Object
implements VertexConsumerProvider
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.
- See Also:
- Mappings:
Namespace Name named net/minecraft/client/render/VertexConsumerProvider$Immediate
intermediary net/minecraft/class_4597$class_4598
official gez$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.VertexConsumerProvider
VertexConsumerProvider.Immediate
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BufferAllocator
protected @Nullable RenderLayer
protected final SequencedMap
<RenderLayer, BufferAllocator> protected final Map
<RenderLayer, BufferBuilder> -
Constructor Summary
ModifierConstructorDescriptionprotected
Immediate
(BufferAllocator allocator, SequencedMap<RenderLayer, BufferAllocator> sequencedMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw()
Draws all remaining render layers includinglayerBuffers
specified in the constructor.void
draw
(RenderLayer layer) Draws the contents in thelayer
's buffer.private void
draw
(RenderLayer layer, BufferBuilder builder) void
Draws the current render layer if it's not inlayerBuffers
specified in the constructor.getBuffer
(RenderLayer layer) Starts building a buffer that will be drawn withlayer
.
-
Field Details
-
allocator
- Mappings:
Namespace Name Mixin selector named allocator
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;allocator:Lnet/minecraft/client/util/BufferAllocator;
intermediary field_52156
Lnet/minecraft/class_4597$class_4598;field_52156:Lnet/minecraft/class_9799;
official a
Lgez$a;a:Lfbf;
-
layerBuffers
- Mappings:
Namespace Name Mixin selector named layerBuffers
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;layerBuffers:Ljava/util/SequencedMap;
intermediary field_20953
Lnet/minecraft/class_4597$class_4598;field_20953:Ljava/util/SequencedMap;
official b
Lgez$a;b:Ljava/util/SequencedMap;
-
pending
- Mappings:
Namespace Name Mixin selector named pending
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;pending:Ljava/util/Map;
intermediary field_52157
Lnet/minecraft/class_4597$class_4598;field_52157:Ljava/util/Map;
official c
Lgez$a;c:Ljava/util/Map;
-
currentLayer
- Mappings:
Namespace Name Mixin selector named currentLayer
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;currentLayer:Lnet/minecraft/client/render/RenderLayer;
intermediary field_52158
Lnet/minecraft/class_4597$class_4598;field_52158:Lnet/minecraft/class_1921;
official d
Lgez$a;d:Lgfh;
-
-
Constructor Details
-
Immediate
protected Immediate(BufferAllocator allocator, SequencedMap<RenderLayer, BufferAllocator> sequencedMap) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;<init>(Lnet/minecraft/client/util/BufferAllocator;Ljava/util/SequencedMap;)V
intermediary <init>
Lnet/minecraft/class_4597$class_4598;<init>(Lnet/minecraft/class_9799;Ljava/util/SequencedMap;)V
official <init>
Lgez$a;<init>(Lfbf;Ljava/util/SequencedMap;)V
-
-
Method Details
-
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.- Specified by:
getBuffer
in interfaceVertexConsumerProvider
- 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;
-
drawCurrentLayer
public void drawCurrentLayer()Draws the current render layer if it's not inlayerBuffers
specified in the constructor.- Mappings:
Namespace Name Mixin selector named drawCurrentLayer
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;drawCurrentLayer()V
intermediary method_37104
Lnet/minecraft/class_4597$class_4598;method_37104()V
official a
Lgez$a;a()V
-
draw
public void draw()Draws all remaining render layers includinglayerBuffers
specified in the constructor.- Mappings:
Namespace Name Mixin selector named draw
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw()V
intermediary method_22993
Lnet/minecraft/class_4597$class_4598;method_22993()V
official b
Lgez$a;b()V
-
draw
Draws the contents in thelayer
's buffer.- Mappings:
Namespace Name Mixin selector named draw
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw(Lnet/minecraft/client/render/RenderLayer;)V
intermediary method_22994
Lnet/minecraft/class_4597$class_4598;method_22994(Lnet/minecraft/class_1921;)V
official a
Lgez$a;a(Lgfh;)V
-
draw
- Mappings:
Namespace Name Mixin selector named draw
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw(Lnet/minecraft/client/render/RenderLayer;Lnet/minecraft/client/render/BufferBuilder;)V
intermediary method_60893
Lnet/minecraft/class_4597$class_4598;method_60893(Lnet/minecraft/class_1921;Lnet/minecraft/class_287;)V
official a
Lgez$a;a(Lgfh;Lfbd;)V
-