Package net.minecraft.client.render
Class BufferBuilder
java.lang.Object
net.minecraft.client.render.FixedColorVertexConsumer
net.minecraft.client.render.BufferBuilder
- All Implemented Interfaces:
BufferVertexConsumer
,VertexConsumer
@Environment(CLIENT)
public class BufferBuilder
extends FixedColorVertexConsumer
implements BufferVertexConsumer
- Mappings:
Namespace Name official dpe
intermediary net/minecraft/class_287
named net/minecraft/client/render/BufferBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuffer
private boolean
private int
private @Nullable VertexFormatElement
private int
private VertexFormat.DrawMode
private int
private boolean
private boolean
private float
private float
private float
private boolean
private static int
private VertexFormat
private int
private static Logger
private int
private List<BufferBuilder.DrawArrayParameters>
private int
Fields inherited from class net.minecraft.client.render.FixedColorVertexConsumer
colorFixed, fixedAlpha, fixedBlue, fixedGreen, fixedRed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin(VertexFormat.DrawMode drawMode, VertexFormat format)
void
clear()
color(int red, int green, int blue, int alpha)
void
end()
private void
grow()
private void
grow(int size)
boolean
void
method_31948(float float2, float float3, float float4)
private IntConsumer
method_31949(VertexFormat.IntType intType)
private void
method_31950(VertexFormat.IntType intType)
private Vec3f[]
void
next()
void
com.mojang.datafixers.util.Pair<BufferBuilder.DrawArrayParameters,ByteBuffer>
popData()
popState()
void
putByte(int index, byte value)
void
putFloat(int index, float value)
void
putShort(int index, short value)
void
reset()
void
restoreState(BufferBuilder.State state)
private static int
roundBufferSize(int amount)
private void
setFormat(VertexFormat format)
void
vertex(float x, float y, float z, float red, float green, float blue, float alpha, float u, float v, int overlay, int light, float normalX, float normalY, float normalZ)
Methods inherited from class net.minecraft.client.render.FixedColorVertexConsumer
fixedColor, method_35666
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.render.BufferVertexConsumer
light, normal, overlay, texture, texture, vertex
Methods inherited from interface net.minecraft.client.render.VertexConsumer
color, fixedColor, light, method_35666, normal, overlay, quad, quad, vertex
-
Field Details
-
field_32050
private static final int field_32050- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official g
Ldpe;g:I
intermediary field_32050
Lnet/minecraft/class_287;field_32050:I
named field_32050
Lnet/minecraft/client/render/BufferBuilder;field_32050:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector official h
Ldpe;h:Lorg/apache/logging/log4j/Logger;
intermediary field_1557
Lnet/minecraft/class_287;field_1557:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/render/BufferBuilder;LOGGER:Lorg/apache/logging/log4j/Logger;
-
buffer
- Mappings:
Namespace Name Mixin selector official i
Ldpe;i:Ljava/nio/ByteBuffer;
intermediary field_1555
Lnet/minecraft/class_287;field_1555:Ljava/nio/ByteBuffer;
named buffer
Lnet/minecraft/client/render/BufferBuilder;buffer:Ljava/nio/ByteBuffer;
-
parameters
- Mappings:
Namespace Name Mixin selector official j
Ldpe;j:Ljava/util/List;
intermediary field_20774
Lnet/minecraft/class_287;field_20774:Ljava/util/List;
named parameters
Lnet/minecraft/client/render/BufferBuilder;parameters:Ljava/util/List;
-
lastParameterIndex
private int lastParameterIndex- Mappings:
Namespace Name Mixin selector official k
Ldpe;k:I
intermediary field_20775
Lnet/minecraft/class_287;field_20775:I
named lastParameterIndex
Lnet/minecraft/client/render/BufferBuilder;lastParameterIndex:I
-
buildStart
private int buildStart- Mappings:
Namespace Name Mixin selector official l
Ldpe;l:I
intermediary field_20776
Lnet/minecraft/class_287;field_20776:I
named buildStart
Lnet/minecraft/client/render/BufferBuilder;buildStart:I
-
elementOffset
private int elementOffset- Mappings:
Namespace Name Mixin selector official m
Ldpe;m:I
intermediary field_20884
Lnet/minecraft/class_287;field_20884:I
named elementOffset
Lnet/minecraft/client/render/BufferBuilder;elementOffset:I
-
nextDrawStart
private int nextDrawStart- Mappings:
Namespace Name Mixin selector official n
Ldpe;n:I
intermediary field_20777
Lnet/minecraft/class_287;field_20777:I
named nextDrawStart
Lnet/minecraft/client/render/BufferBuilder;nextDrawStart:I
-
vertexCount
private int vertexCount- Mappings:
Namespace Name Mixin selector official o
Ldpe;o:I
intermediary field_1554
Lnet/minecraft/class_287;field_1554:I
named vertexCount
Lnet/minecraft/client/render/BufferBuilder;vertexCount:I
-
currentElement
- Mappings:
Namespace Name Mixin selector official p
Ldpe;p:Ldpp;
intermediary field_1558
Lnet/minecraft/class_287;field_1558:Lnet/minecraft/class_296;
named currentElement
Lnet/minecraft/client/render/BufferBuilder;currentElement:Lnet/minecraft/client/render/VertexFormatElement;
-
currentElementId
private int currentElementId- Mappings:
Namespace Name Mixin selector official q
Ldpe;q:I
intermediary field_1553
Lnet/minecraft/class_287;field_1553:I
named currentElementId
Lnet/minecraft/client/render/BufferBuilder;currentElementId:I
-
format
- Mappings:
Namespace Name Mixin selector official r
Ldpe;r:Ldpo;
intermediary field_1565
Lnet/minecraft/class_287;field_1565:Lnet/minecraft/class_293;
named format
Lnet/minecraft/client/render/BufferBuilder;format:Lnet/minecraft/client/render/VertexFormat;
-
drawMode
- Mappings:
Namespace Name Mixin selector official s
Ldpe;s:Ldpo$b;
intermediary field_1567
Lnet/minecraft/class_287;field_1567:Lnet/minecraft/class_293$class_5596;
named drawMode
Lnet/minecraft/client/render/BufferBuilder;drawMode:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
field_21594
private boolean field_21594- Mappings:
Namespace Name Mixin selector official t
Ldpe;t:Z
intermediary field_21594
Lnet/minecraft/class_287;field_21594:Z
named field_21594
Lnet/minecraft/client/render/BufferBuilder;field_21594:Z
-
field_21595
private boolean field_21595- Mappings:
Namespace Name Mixin selector official u
Ldpe;u:Z
intermediary field_21595
Lnet/minecraft/class_287;field_21595:Z
named field_21595
Lnet/minecraft/client/render/BufferBuilder;field_21595:Z
-
building
private boolean building- Mappings:
Namespace Name Mixin selector official v
Ldpe;v:Z
intermediary field_1556
Lnet/minecraft/class_287;field_1556:Z
named building
Lnet/minecraft/client/render/BufferBuilder;building:Z
-
field_27348
- Mappings:
Namespace Name Mixin selector official w
Ldpe;w:[Lk;
intermediary field_27348
Lnet/minecraft/class_287;field_27348:[Lnet/minecraft/class_1160;
named field_27348
Lnet/minecraft/client/render/BufferBuilder;field_27348:[Lnet/minecraft/util/math/Vec3f;
-
field_27349
private float field_27349- Mappings:
Namespace Name Mixin selector official x
Ldpe;x:F
intermediary field_27349
Lnet/minecraft/class_287;field_27349:F
named field_27349
Lnet/minecraft/client/render/BufferBuilder;field_27349:F
-
field_27350
private float field_27350- Mappings:
Namespace Name Mixin selector official y
Ldpe;y:F
intermediary field_27350
Lnet/minecraft/class_287;field_27350:F
named field_27350
Lnet/minecraft/client/render/BufferBuilder;field_27350:F
-
field_27351
private float field_27351- Mappings:
Namespace Name Mixin selector official z
Ldpe;z:F
intermediary field_27351
Lnet/minecraft/class_287;field_27351:F
named field_27351
Lnet/minecraft/client/render/BufferBuilder;field_27351:F
-
field_27352
private boolean field_27352- Mappings:
Namespace Name Mixin selector official A
Ldpe;A:Z
intermediary field_27352
Lnet/minecraft/class_287;field_27352:Z
named field_27352
Lnet/minecraft/client/render/BufferBuilder;field_27352:Z
-
-
Constructor Details
-
BufferBuilder
public BufferBuilder(int initialCapacity)- Mappings:
Namespace Name Mixin selector official <init>
Ldpe;<init>(I)V
intermediary <init>
Lnet/minecraft/class_287;<init>(I)V
named <init>
Lnet/minecraft/client/render/BufferBuilder;<init>(I)V
-
-
Method Details
-
grow
private void grow()- Mappings:
Namespace Name Mixin selector official k
Ldpe;k()V
intermediary method_22892
Lnet/minecraft/class_287;method_22892()V
named grow
Lnet/minecraft/client/render/BufferBuilder;grow()V
-
grow
private void grow(int size)- Mappings:
Namespace Name Mixin selector official c
Ldpe;c(I)V
intermediary method_1335
Lnet/minecraft/class_287;method_1335(I)V
named grow
Lnet/minecraft/client/render/BufferBuilder;grow(I)V
-
roundBufferSize
private static int roundBufferSize(int amount)- Mappings:
Namespace Name Mixin selector official d
Ldpe;d(I)I
intermediary method_16005
Lnet/minecraft/class_287;method_16005(I)I
named roundBufferSize
Lnet/minecraft/client/render/BufferBuilder;roundBufferSize(I)I
-
method_31948
public void method_31948(float float2, float float3, float float4)- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(FFF)V
intermediary method_31948
Lnet/minecraft/class_287;method_31948(FFF)V
named method_31948
Lnet/minecraft/client/render/BufferBuilder;method_31948(FFF)V
-
popState
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a()Ldpe$b;
intermediary method_1334
Lnet/minecraft/class_287;method_1334()Lnet/minecraft/class_287$class_5594;
named popState
Lnet/minecraft/client/render/BufferBuilder;popState()Lnet/minecraft/client/render/BufferBuilder$State;
-
restoreState
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ldpe$b;)V
intermediary method_1324
Lnet/minecraft/class_287;method_1324(Lnet/minecraft/class_287$class_5594;)V
named restoreState
Lnet/minecraft/client/render/BufferBuilder;restoreState(Lnet/minecraft/client/render/BufferBuilder$State;)V
-
begin
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ldpo$b;Ldpo;)V
intermediary method_1328
Lnet/minecraft/class_287;method_1328(Lnet/minecraft/class_293$class_5596;Lnet/minecraft/class_293;)V
named begin
Lnet/minecraft/client/render/BufferBuilder;begin(Lnet/minecraft/client/render/VertexFormat$DrawMode;Lnet/minecraft/client/render/VertexFormat;)V
-
setFormat
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ldpo;)V
intermediary method_23918
Lnet/minecraft/class_287;method_23918(Lnet/minecraft/class_293;)V
named setFormat
Lnet/minecraft/client/render/BufferBuilder;setFormat(Lnet/minecraft/client/render/VertexFormat;)V
-
method_31949
- Mappings:
Namespace Name Mixin selector official a
Ldpe;a(Ldpo$a;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
intermediary method_31949
Lnet/minecraft/class_287;method_31949(Lnet/minecraft/class_293$class_5595;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
named method_31949
Lnet/minecraft/client/render/BufferBuilder;method_31949(Lnet/minecraft/client/render/VertexFormat$IntType;)Lit/unimi/dsi/fastutil/ints/IntConsumer;
-
method_31954
- Mappings:
Namespace Name Mixin selector official l
Ldpe;l()[Lk;
intermediary method_31954
Lnet/minecraft/class_287;method_31954()[Lnet/minecraft/class_1160;
named method_31954
Lnet/minecraft/client/render/BufferBuilder;method_31954()[Lnet/minecraft/util/math/Vec3f;
-
method_31950
- Mappings:
Namespace Name Mixin selector official b
Ldpe;b(Ldpo$a;)V
intermediary method_31950
Lnet/minecraft/class_287;method_31950(Lnet/minecraft/class_293$class_5595;)V
named method_31950
Lnet/minecraft/client/render/BufferBuilder;method_31950(Lnet/minecraft/client/render/VertexFormat$IntType;)V
-
end
public void end()- Mappings:
Namespace Name Mixin selector official b
Ldpe;b()V
intermediary method_1326
Lnet/minecraft/class_287;method_1326()V
named end
Lnet/minecraft/client/render/BufferBuilder;end()V
-
putByte
public void putByte(int index, byte value)- Specified by:
putByte
in interfaceBufferVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(IB)V
intermediary method_22896
Lnet/minecraft/class_4584;method_22896(IB)V
named putByte
Lnet/minecraft/client/render/BufferVertexConsumer;putByte(IB)V
-
putShort
public void putShort(int index, short value)- Specified by:
putShort
in interfaceBufferVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(IS)V
intermediary method_22898
Lnet/minecraft/class_4584;method_22898(IS)V
named putShort
Lnet/minecraft/client/render/BufferVertexConsumer;putShort(IS)V
-
putFloat
public void putFloat(int index, float value)- Specified by:
putFloat
in interfaceBufferVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Ldpg;a(IF)V
intermediary method_22897
Lnet/minecraft/class_4584;method_22897(IF)V
named putFloat
Lnet/minecraft/client/render/BufferVertexConsumer;putFloat(IF)V
-
next
public void next()- Specified by:
next
in interfaceVertexConsumer
- Mappings:
Namespace Name Mixin selector official c
Ldpn;c()V
intermediary method_1344
Lnet/minecraft/class_4588;method_1344()V
named next
Lnet/minecraft/client/render/VertexConsumer;next()V
-
nextElement
public void nextElement()- Specified by:
nextElement
in interfaceBufferVertexConsumer
- Mappings:
Namespace Name Mixin selector official d
Ldpg;d()V
intermediary method_1325
Lnet/minecraft/class_4584;method_1325()V
named nextElement
Lnet/minecraft/client/render/BufferVertexConsumer;nextElement()V
-
color
- Specified by:
color
in interfaceBufferVertexConsumer
- Specified by:
color
in interfaceVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Ldpn;a(IIII)Ldpn;
intermediary method_1336
Lnet/minecraft/class_4588;method_1336(IIII)Lnet/minecraft/class_4588;
named color
Lnet/minecraft/client/render/VertexConsumer;color(IIII)Lnet/minecraft/client/render/VertexConsumer;
-
vertex
public void vertex(float x, float y, float z, float red, float green, float blue, float alpha, float u, float v, int overlay, int light, float normalX, float normalY, float normalZ)- Specified by:
vertex
in interfaceVertexConsumer
- Mappings:
Namespace Name Mixin selector official a
Ldpn;a(FFFFFFFFFIIFFF)V
intermediary method_23919
Lnet/minecraft/class_4588;method_23919(FFFFFFFFFIIFFF)V
named vertex
Lnet/minecraft/client/render/VertexConsumer;vertex(FFFFFFFFFIIFFF)V
-
popData
- Mappings:
Namespace Name Mixin selector official e
Ldpe;e()Lcom/mojang/datafixers/util/Pair;
intermediary method_22632
Lnet/minecraft/class_287;method_22632()Lcom/mojang/datafixers/util/Pair;
named popData
Lnet/minecraft/client/render/BufferBuilder;popData()Lcom/mojang/datafixers/util/Pair;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official f
Ldpe;f()V
intermediary method_1343
Lnet/minecraft/class_287;method_1343()V
named clear
Lnet/minecraft/client/render/BufferBuilder;clear()V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official g
Ldpe;g()V
intermediary method_23477
Lnet/minecraft/class_287;method_23477()V
named reset
Lnet/minecraft/client/render/BufferBuilder;reset()V
-
getCurrentElement
- Specified by:
getCurrentElement
in interfaceBufferVertexConsumer
- Mappings:
Namespace Name Mixin selector official h
Ldpg;h()Ldpp;
intermediary method_22900
Lnet/minecraft/class_4584;method_22900()Lnet/minecraft/class_296;
named getCurrentElement
Lnet/minecraft/client/render/BufferVertexConsumer;getCurrentElement()Lnet/minecraft/client/render/VertexFormatElement;
-
isBuilding
public boolean isBuilding()- Mappings:
Namespace Name Mixin selector official i
Ldpe;i()Z
intermediary method_22893
Lnet/minecraft/class_287;method_22893()Z
named isBuilding
Lnet/minecraft/client/render/BufferBuilder;isBuilding()Z
-