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 official ezs$a
intermediary net/minecraft/class_4597$class_4598
named net/minecraft/client/render/VertexConsumerProvider$Immediate
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.VertexConsumerProvider
VertexConsumerProvider.Immediate
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Set<BufferBuilder>
protected Optional<RenderLayer>
protected final BufferBuilder
protected final Map<RenderLayer,
BufferBuilder> -
Constructor Summary
ModifierConstructorDescriptionprotected
Immediate
(BufferBuilder fallbackBuffer, Map<RenderLayer, BufferBuilder> layerBuffers) -
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.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
.private BufferBuilder
getBufferInternal
(RenderLayer layer)
-
Field Details
-
fallbackBuffer
- Mappings:
Namespace Name Mixin selector official a
Lezs$a;a:Leal;
intermediary field_20952
Lnet/minecraft/class_4597$class_4598;field_20952:Lnet/minecraft/class_287;
named fallbackBuffer
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;fallbackBuffer:Lnet/minecraft/client/render/BufferBuilder;
-
layerBuffers
- Mappings:
Namespace Name Mixin selector official b
Lezs$a;b:Ljava/util/Map;
intermediary field_20953
Lnet/minecraft/class_4597$class_4598;field_20953:Ljava/util/Map;
named layerBuffers
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;layerBuffers:Ljava/util/Map;
-
currentLayer
- Mappings:
Namespace Name Mixin selector official c
Lezs$a;c:Ljava/util/Optional;
intermediary field_20954
Lnet/minecraft/class_4597$class_4598;field_20954:Ljava/util/Optional;
named currentLayer
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;currentLayer:Ljava/util/Optional;
-
activeConsumers
- Mappings:
Namespace Name Mixin selector official d
Lezs$a;d:Ljava/util/Set;
intermediary field_20955
Lnet/minecraft/class_4597$class_4598;field_20955:Ljava/util/Set;
named activeConsumers
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;activeConsumers:Ljava/util/Set;
-
-
Constructor Details
-
Immediate
- Mappings:
Namespace Name Mixin selector official <init>
Lezs$a;<init>(Leal;Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_4597$class_4598;<init>(Lnet/minecraft/class_287;Ljava/util/Map;)V
named <init>
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;<init>(Lnet/minecraft/client/render/BufferBuilder;Ljava/util/Map;)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 official getBuffer
Lezs;getBuffer(Lfaa;)Leau;
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;
-
getBufferInternal
- Mappings:
Namespace Name Mixin selector official b
Lezs$a;b(Lfaa;)Leal;
intermediary method_22995
Lnet/minecraft/class_4597$class_4598;method_22995(Lnet/minecraft/class_1921;)Lnet/minecraft/class_287;
named getBufferInternal
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;getBufferInternal(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/BufferBuilder;
-
drawCurrentLayer
public void drawCurrentLayer()Draws the current render layer if it's not inlayerBuffers
specified in the constructor.- Mappings:
Namespace Name Mixin selector official a
Lezs$a;a()V
intermediary method_37104
Lnet/minecraft/class_4597$class_4598;method_37104()V
named drawCurrentLayer
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;drawCurrentLayer()V
-
draw
public void draw()Draws all remaining render layers includinglayerBuffers
specified in the constructor.- Mappings:
Namespace Name Mixin selector official b
Lezs$a;b()V
intermediary method_22993
Lnet/minecraft/class_4597$class_4598;method_22993()V
named draw
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw()V
-
draw
Draws the contents in thelayer
's buffer.- Mappings:
Namespace Name Mixin selector official a
Lezs$a;a(Lfaa;)V
intermediary method_22994
Lnet/minecraft/class_4597$class_4598;method_22994(Lnet/minecraft/class_1921;)V
named draw
Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;draw(Lnet/minecraft/client/render/RenderLayer;)V
-