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$Immediateintermediary net/minecraft/class_4597$class_4598official gez$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.VertexConsumerProvider
VertexConsumerProvider.Immediate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BufferAllocatorprotected @Nullable RenderLayerprotected final SequencedMap<RenderLayer, BufferAllocator> protected final Map<RenderLayer, BufferBuilder> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmediate(BufferAllocator allocator, SequencedMap<RenderLayer, BufferAllocator> sequencedMap) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draws all remaining render layers includinglayerBuffersspecified in the constructor.voiddraw(RenderLayer layer) Draws the contents in thelayer's buffer.private voiddraw(RenderLayer layer, BufferBuilder builder) voidDraws the current render layer if it's not inlayerBuffersspecified in the constructor.getBuffer(RenderLayer layer) Starts building a buffer that will be drawn withlayer.
-
Field Details
-
allocator
- Mappings:
Namespace Name Mixin selector named allocatorLnet/minecraft/client/render/VertexConsumerProvider$Immediate;allocator:Lnet/minecraft/client/util/BufferAllocator;intermediary field_52156Lnet/minecraft/class_4597$class_4598;field_52156:Lnet/minecraft/class_9799;official aLgez$a;a:Lfbf;
-
layerBuffers
- Mappings:
Namespace Name Mixin selector named layerBuffersLnet/minecraft/client/render/VertexConsumerProvider$Immediate;layerBuffers:Ljava/util/SequencedMap;intermediary field_20953Lnet/minecraft/class_4597$class_4598;field_20953:Ljava/util/SequencedMap;official bLgez$a;b:Ljava/util/SequencedMap;
-
pending
- Mappings:
Namespace Name Mixin selector named pendingLnet/minecraft/client/render/VertexConsumerProvider$Immediate;pending:Ljava/util/Map;intermediary field_52157Lnet/minecraft/class_4597$class_4598;field_52157:Ljava/util/Map;official cLgez$a;c:Ljava/util/Map;
-
currentLayer
- Mappings:
Namespace Name Mixin selector named currentLayerLnet/minecraft/client/render/VertexConsumerProvider$Immediate;currentLayer:Lnet/minecraft/client/render/RenderLayer;intermediary field_52158Lnet/minecraft/class_4597$class_4598;field_52158:Lnet/minecraft/class_1921;official dLgez$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;)Vintermediary <init>Lnet/minecraft/class_4597$class_4598;<init>(Lnet/minecraft/class_9799;Ljava/util/SequencedMap;)Vofficial <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
Tessellatoror making a custom render layer.- Specified by:
getBufferin interfaceVertexConsumerProvider- Mappings:
Namespace Name Mixin selector named getBufferLnet/minecraft/client/render/VertexConsumerProvider;getBuffer(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/VertexConsumer;intermediary getBufferLnet/minecraft/class_4597;getBuffer(Lnet/minecraft/class_1921;)Lnet/minecraft/class_4588;official getBufferLgez;getBuffer(Lgfh;)Lfbm;
-
drawCurrentLayer
public void drawCurrentLayer()Draws the current render layer if it's not inlayerBuffersspecified in the constructor.- Mappings:
Namespace Name Mixin selector named drawCurrentLayerLnet/minecraft/client/render/VertexConsumerProvider$Immediate;drawCurrentLayer()Vintermediary method_37104Lnet/minecraft/class_4597$class_4598;method_37104()Vofficial aLgez$a;a()V
-
draw
public void draw()Draws all remaining render layers includinglayerBuffersspecified in the constructor.- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw()Vintermediary method_22993Lnet/minecraft/class_4597$class_4598;method_22993()Vofficial bLgez$a;b()V
-
draw
Draws the contents in thelayer's buffer.- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw(Lnet/minecraft/client/render/RenderLayer;)Vintermediary method_22994Lnet/minecraft/class_4597$class_4598;method_22994(Lnet/minecraft/class_1921;)Vofficial aLgez$a;a(Lgfh;)V
-
draw
- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw(Lnet/minecraft/client/render/RenderLayer;Lnet/minecraft/client/render/BufferBuilder;)Vintermediary method_60893Lnet/minecraft/class_4597$class_4598;method_60893(Lnet/minecraft/class_1921;Lnet/minecraft/class_287;)Vofficial aLgez$a;a(Lgfh;Lfbd;)V
-