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 gdp$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.VertexConsumerProvider
VertexConsumerProvider.Immediate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<BufferBuilder> protected Optional<RenderLayer> protected final BufferBuilderprotected final Map<RenderLayer, BufferBuilder> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedImmediate(BufferBuilder fallbackBuffer, Map<RenderLayer, BufferBuilder> layerBuffers) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Draws all remaining render layers includinglayerBuffersspecified in the constructor.voiddraw(RenderLayer layer) Draws the contents in thelayer's buffer.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.private BufferBuildergetBufferInternal(RenderLayer layer)
-
Field Details
-
fallbackBuffer
- Mappings:
Namespace Name Mixin selector named fallbackBufferLnet/minecraft/client/render/VertexConsumerProvider$Immediate;fallbackBuffer:Lnet/minecraft/client/render/BufferBuilder;intermediary field_20952Lnet/minecraft/class_4597$class_4598;field_20952:Lnet/minecraft/class_287;official aLgdp$a;a:Lezu;
-
layerBuffers
- Mappings:
Namespace Name Mixin selector named layerBuffersLnet/minecraft/client/render/VertexConsumerProvider$Immediate;layerBuffers:Ljava/util/Map;intermediary field_20953Lnet/minecraft/class_4597$class_4598;field_20953:Ljava/util/Map;official bLgdp$a;b:Ljava/util/Map;
-
currentLayer
- Mappings:
Namespace Name Mixin selector named currentLayerLnet/minecraft/client/render/VertexConsumerProvider$Immediate;currentLayer:Ljava/util/Optional;intermediary field_20954Lnet/minecraft/class_4597$class_4598;field_20954:Ljava/util/Optional;official cLgdp$a;c:Ljava/util/Optional;
-
activeConsumers
- Mappings:
Namespace Name Mixin selector named activeConsumersLnet/minecraft/client/render/VertexConsumerProvider$Immediate;activeConsumers:Ljava/util/Set;intermediary field_20955Lnet/minecraft/class_4597$class_4598;field_20955:Ljava/util/Set;official dLgdp$a;d:Ljava/util/Set;
-
-
Constructor Details
-
Immediate
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;<init>(Lnet/minecraft/client/render/BufferBuilder;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_4597$class_4598;<init>(Lnet/minecraft/class_287;Ljava/util/Map;)Vofficial <init>Lgdp$a;<init>(Lezu;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
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 getBufferLgdp;getBuffer(Lgdx;)Lfad;
-
getBufferInternal
- Mappings:
Namespace Name Mixin selector named getBufferInternalLnet/minecraft/client/render/VertexConsumerProvider$Immediate;getBufferInternal(Lnet/minecraft/client/render/RenderLayer;)Lnet/minecraft/client/render/BufferBuilder;intermediary method_22995Lnet/minecraft/class_4597$class_4598;method_22995(Lnet/minecraft/class_1921;)Lnet/minecraft/class_287;official bLgdp$a;b(Lgdx;)Lezu;
-
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 aLgdp$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 bLgdp$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 aLgdp$a;a(Lgdx;)V
-