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 dlqintermediary net/minecraft/class_287named net/minecraft/client/render/BufferBuilder
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBufferBuilder.class_5594static classBufferBuilder.DrawArrayParameters -
Field Summary
Fields Modifier and Type Field Description private ByteBufferbufferprivate booleanbuildingprivate intbuildStartprivate VertexFormatElementcurrentElementprivate intcurrentElementIdprivate VertexFormat.DrawModedrawModeprivate intelementOffsetprivate booleanfield_21594private booleanfield_21595private Vec3f[]field_27348private floatfield_27349private floatfield_27350private floatfield_27351private booleanfield_27352private VertexFormatformatprivate intlastParameterIndexprivate static LoggerLOGGERprivate intnextDrawStartprivate List<BufferBuilder.DrawArrayParameters>parametersprivate intvertexCountFields inherited from class net.minecraft.client.render.FixedColorVertexConsumer
colorFixed, fixedAlpha, fixedBlue, fixedGreen, fixedRed -
Constructor Summary
Constructors Constructor Description BufferBuilder(int initialCapacity) -
Method Summary
Modifier and Type Method Description voidbegin(VertexFormat.DrawMode drawMode, VertexFormat format)voidclear()VertexConsumercolor(int red, int green, int blue, int alpha)voidend()VertexFormatElementgetCurrentElement()private voidgrow()private voidgrow(int size)booleanisBuilding()voidmethod_31948(float float2, float float3, float float4)private IntConsumermethod_31949(VertexFormat.IntType intType)private voidmethod_31950(VertexFormat.IntType intType)private Vec3f[]method_31954()voidnext()voidnextElement()com.mojang.datafixers.util.Pair<BufferBuilder.DrawArrayParameters,ByteBuffer>popData()BufferBuilder.class_5594popState()voidputByte(int index, byte value)voidputFloat(int index, float value)voidputShort(int index, short value)voidreset()voidrestoreState(BufferBuilder.class_5594 class_5594)private static introundBufferSize(int amount)private voidsetFormat(VertexFormat format)voidvertex(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
fixedColorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official gLdlq;g:Lorg/apache/logging/log4j/Logger;intermediary field_1557Lnet/minecraft/class_287;field_1557:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/render/BufferBuilder;LOGGER:Lorg/apache/logging/log4j/Logger;
-
buffer
- Mappings:
Namespace Name Mixin selector official hLdlq;h:Ljava/nio/ByteBuffer;intermediary field_1555Lnet/minecraft/class_287;field_1555:Ljava/nio/ByteBuffer;named bufferLnet/minecraft/client/render/BufferBuilder;buffer:Ljava/nio/ByteBuffer;
-
parameters
- Mappings:
Namespace Name Mixin selector official iLdlq;i:Ljava/util/List;intermediary field_20774Lnet/minecraft/class_287;field_20774:Ljava/util/List;named parametersLnet/minecraft/client/render/BufferBuilder;parameters:Ljava/util/List;
-
lastParameterIndex
private int lastParameterIndex- Mappings:
Namespace Name Mixin selector official jLdlq;j:Iintermediary field_20775Lnet/minecraft/class_287;field_20775:Inamed lastParameterIndexLnet/minecraft/client/render/BufferBuilder;lastParameterIndex:I
-
buildStart
private int buildStart- Mappings:
Namespace Name Mixin selector official kLdlq;k:Iintermediary field_20776Lnet/minecraft/class_287;field_20776:Inamed buildStartLnet/minecraft/client/render/BufferBuilder;buildStart:I
-
elementOffset
private int elementOffset- Mappings:
Namespace Name Mixin selector official lLdlq;l:Iintermediary field_20884Lnet/minecraft/class_287;field_20884:Inamed elementOffsetLnet/minecraft/client/render/BufferBuilder;elementOffset:I
-
nextDrawStart
private int nextDrawStart- Mappings:
Namespace Name Mixin selector official mLdlq;m:Iintermediary field_20777Lnet/minecraft/class_287;field_20777:Inamed nextDrawStartLnet/minecraft/client/render/BufferBuilder;nextDrawStart:I
-
vertexCount
private int vertexCount- Mappings:
Namespace Name Mixin selector official nLdlq;n:Iintermediary field_1554Lnet/minecraft/class_287;field_1554:Inamed vertexCountLnet/minecraft/client/render/BufferBuilder;vertexCount:I
-
currentElement
- Mappings:
Namespace Name Mixin selector official oLdlq;o:Ldmb;intermediary field_1558Lnet/minecraft/class_287;field_1558:Lnet/minecraft/class_296;named currentElementLnet/minecraft/client/render/BufferBuilder;currentElement:Lnet/minecraft/client/render/VertexFormatElement;
-
currentElementId
private int currentElementId- Mappings:
Namespace Name Mixin selector official pLdlq;p:Iintermediary field_1553Lnet/minecraft/class_287;field_1553:Inamed currentElementIdLnet/minecraft/client/render/BufferBuilder;currentElementId:I
-
format
- Mappings:
Namespace Name Mixin selector official qLdlq;q:Ldma;intermediary field_1565Lnet/minecraft/class_287;field_1565:Lnet/minecraft/class_293;named formatLnet/minecraft/client/render/BufferBuilder;format:Lnet/minecraft/client/render/VertexFormat;
-
drawMode
- Mappings:
Namespace Name Mixin selector official rLdlq;r:Ldma$b;intermediary field_1567Lnet/minecraft/class_287;field_1567:Lnet/minecraft/class_293$class_5596;named drawModeLnet/minecraft/client/render/BufferBuilder;drawMode:Lnet/minecraft/client/render/VertexFormat$DrawMode;
-
field_21594
private boolean field_21594- Mappings:
Namespace Name Mixin selector official sLdlq;s:Zintermediary field_21594Lnet/minecraft/class_287;field_21594:Znamed field_21594Lnet/minecraft/client/render/BufferBuilder;field_21594:Z
-
field_21595
private boolean field_21595- Mappings:
Namespace Name Mixin selector official tLdlq;t:Zintermediary field_21595Lnet/minecraft/class_287;field_21595:Znamed field_21595Lnet/minecraft/client/render/BufferBuilder;field_21595:Z
-
building
private boolean building- Mappings:
Namespace Name Mixin selector official uLdlq;u:Zintermediary field_1556Lnet/minecraft/class_287;field_1556:Znamed buildingLnet/minecraft/client/render/BufferBuilder;building:Z
-
field_27348
- Mappings:
Namespace Name Mixin selector official vLdlq;v:[Lg;intermediary field_27348Lnet/minecraft/class_287;field_27348:[Lnet/minecraft/class_1160;named field_27348Lnet/minecraft/client/render/BufferBuilder;field_27348:[Lnet/minecraft/util/math/Vec3f;
-
field_27349
private float field_27349- Mappings:
Namespace Name Mixin selector official wLdlq;w:Fintermediary field_27349Lnet/minecraft/class_287;field_27349:Fnamed field_27349Lnet/minecraft/client/render/BufferBuilder;field_27349:F
-
field_27350
private float field_27350- Mappings:
Namespace Name Mixin selector official xLdlq;x:Fintermediary field_27350Lnet/minecraft/class_287;field_27350:Fnamed field_27350Lnet/minecraft/client/render/BufferBuilder;field_27350:F
-
field_27351
private float field_27351- Mappings:
Namespace Name Mixin selector official yLdlq;y:Fintermediary field_27351Lnet/minecraft/class_287;field_27351:Fnamed field_27351Lnet/minecraft/client/render/BufferBuilder;field_27351:F
-
field_27352
private boolean field_27352- Mappings:
Namespace Name Mixin selector official zLdlq;z:Zintermediary field_27352Lnet/minecraft/class_287;field_27352:Znamed field_27352Lnet/minecraft/client/render/BufferBuilder;field_27352:Z
-
-
Constructor Details
-
BufferBuilder
public BufferBuilder(int initialCapacity)- Mappings:
Namespace Name Mixin selector official <init>Ldlq;<init>(I)Vintermediary <init>Lnet/minecraft/class_287;<init>(I)Vnamed <init>Lnet/minecraft/client/render/BufferBuilder;<init>(I)V
-
-
Method Details
-
grow
private void grow()- Mappings:
Namespace Name Mixin selector official kLdlq;k()Vintermediary method_22892Lnet/minecraft/class_287;method_22892()Vnamed growLnet/minecraft/client/render/BufferBuilder;grow()V
-
grow
private void grow(int size)- Mappings:
Namespace Name Mixin selector official cLdlq;c(I)Vintermediary method_1335Lnet/minecraft/class_287;method_1335(I)Vnamed growLnet/minecraft/client/render/BufferBuilder;grow(I)V
-
roundBufferSize
private static int roundBufferSize(int amount)- Mappings:
Namespace Name Mixin selector official dLdlq;d(I)Iintermediary method_16005Lnet/minecraft/class_287;method_16005(I)Inamed roundBufferSizeLnet/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 aLdlq;a(FFF)Vintermediary method_31948Lnet/minecraft/class_287;method_31948(FFF)Vnamed method_31948Lnet/minecraft/client/render/BufferBuilder;method_31948(FFF)V
-
popState
- Mappings:
Namespace Name Mixin selector official aLdlq;a()Ldlq$b;intermediary method_1334Lnet/minecraft/class_287;method_1334()Lnet/minecraft/class_287$class_5594;named popStateLnet/minecraft/client/render/BufferBuilder;popState()Lnet/minecraft/client/render/BufferBuilder$class_5594;
-
restoreState
- Mappings:
Namespace Name Mixin selector official aLdlq;a(Ldlq$b;)Vintermediary method_1324Lnet/minecraft/class_287;method_1324(Lnet/minecraft/class_287$class_5594;)Vnamed restoreStateLnet/minecraft/client/render/BufferBuilder;restoreState(Lnet/minecraft/client/render/BufferBuilder$class_5594;)V
-
begin
- Mappings:
Namespace Name Mixin selector official aLdlq;a(Ldma$b;Ldma;)Vintermediary method_1328Lnet/minecraft/class_287;method_1328(Lnet/minecraft/class_293$class_5596;Lnet/minecraft/class_293;)Vnamed beginLnet/minecraft/client/render/BufferBuilder;begin(Lnet/minecraft/client/render/VertexFormat$DrawMode;Lnet/minecraft/client/render/VertexFormat;)V
-
setFormat
- Mappings:
Namespace Name Mixin selector official aLdlq;a(Ldma;)Vintermediary method_23918Lnet/minecraft/class_287;method_23918(Lnet/minecraft/class_293;)Vnamed setFormatLnet/minecraft/client/render/BufferBuilder;setFormat(Lnet/minecraft/client/render/VertexFormat;)V
-
method_31949
- Mappings:
Namespace Name Mixin selector official aLdlq;a(Ldma$a;)Lit/unimi/dsi/fastutil/ints/IntConsumer;intermediary method_31949Lnet/minecraft/class_287;method_31949(Lnet/minecraft/class_293$class_5595;)Lit/unimi/dsi/fastutil/ints/IntConsumer;named method_31949Lnet/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 lLdlq;l()[Lg;intermediary method_31954Lnet/minecraft/class_287;method_31954()[Lnet/minecraft/class_1160;named method_31954Lnet/minecraft/client/render/BufferBuilder;method_31954()[Lnet/minecraft/util/math/Vec3f;
-
method_31950
- Mappings:
Namespace Name Mixin selector official bLdlq;b(Ldma$a;)Vintermediary method_31950Lnet/minecraft/class_287;method_31950(Lnet/minecraft/class_293$class_5595;)Vnamed method_31950Lnet/minecraft/client/render/BufferBuilder;method_31950(Lnet/minecraft/client/render/VertexFormat$IntType;)V
-
end
public void end()- Mappings:
Namespace Name Mixin selector official bLdlq;b()Vintermediary method_1326Lnet/minecraft/class_287;method_1326()Vnamed endLnet/minecraft/client/render/BufferBuilder;end()V
-
putByte
public void putByte(int index, byte value)- Specified by:
putBytein interfaceBufferVertexConsumer- Mappings:
Namespace Name Mixin selector official aLdls;a(IB)Vintermediary method_22896Lnet/minecraft/class_4584;method_22896(IB)Vnamed putByteLnet/minecraft/client/render/BufferVertexConsumer;putByte(IB)V
-
putShort
public void putShort(int index, short value)- Specified by:
putShortin interfaceBufferVertexConsumer- Mappings:
Namespace Name Mixin selector official aLdls;a(IS)Vintermediary method_22898Lnet/minecraft/class_4584;method_22898(IS)Vnamed putShortLnet/minecraft/client/render/BufferVertexConsumer;putShort(IS)V
-
putFloat
public void putFloat(int index, float value)- Specified by:
putFloatin interfaceBufferVertexConsumer- Mappings:
Namespace Name Mixin selector official aLdls;a(IF)Vintermediary method_22897Lnet/minecraft/class_4584;method_22897(IF)Vnamed putFloatLnet/minecraft/client/render/BufferVertexConsumer;putFloat(IF)V
-
next
public void next()- Specified by:
nextin interfaceVertexConsumer- Mappings:
Namespace Name Mixin selector official cLdlz;c()Vintermediary method_1344Lnet/minecraft/class_4588;method_1344()Vnamed nextLnet/minecraft/client/render/VertexConsumer;next()V
-
nextElement
public void nextElement()- Specified by:
nextElementin interfaceBufferVertexConsumer- Mappings:
Namespace Name Mixin selector official dLdls;d()Vintermediary method_1325Lnet/minecraft/class_4584;method_1325()Vnamed nextElementLnet/minecraft/client/render/BufferVertexConsumer;nextElement()V
-
color
- Specified by:
colorin interfaceBufferVertexConsumer- Specified by:
colorin interfaceVertexConsumer- Mappings:
Namespace Name Mixin selector official aLdlz;a(IIII)Ldlz;intermediary method_1336Lnet/minecraft/class_4588;method_1336(IIII)Lnet/minecraft/class_4588;named colorLnet/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:
vertexin interfaceVertexConsumer- Mappings:
Namespace Name Mixin selector official aLdlz;a(FFFFFFFFFIIFFF)Vintermediary method_23919Lnet/minecraft/class_4588;method_23919(FFFFFFFFFIIFFF)Vnamed vertexLnet/minecraft/client/render/VertexConsumer;vertex(FFFFFFFFFIIFFF)V
-
popData
- Mappings:
Namespace Name Mixin selector official eLdlq;e()Lcom/mojang/datafixers/util/Pair;intermediary method_22632Lnet/minecraft/class_287;method_22632()Lcom/mojang/datafixers/util/Pair;named popDataLnet/minecraft/client/render/BufferBuilder;popData()Lcom/mojang/datafixers/util/Pair;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official fLdlq;f()Vintermediary method_1343Lnet/minecraft/class_287;method_1343()Vnamed clearLnet/minecraft/client/render/BufferBuilder;clear()V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector official gLdlq;g()Vintermediary method_23477Lnet/minecraft/class_287;method_23477()Vnamed resetLnet/minecraft/client/render/BufferBuilder;reset()V
-
getCurrentElement
- Specified by:
getCurrentElementin interfaceBufferVertexConsumer- Mappings:
Namespace Name Mixin selector official hLdls;h()Ldmb;intermediary method_22900Lnet/minecraft/class_4584;method_22900()Lnet/minecraft/class_296;named getCurrentElementLnet/minecraft/client/render/BufferVertexConsumer;getCurrentElement()Lnet/minecraft/client/render/VertexFormatElement;
-
isBuilding
public boolean isBuilding()- Mappings:
Namespace Name Mixin selector official iLdlq;i()Zintermediary method_22893Lnet/minecraft/class_287;method_22893()Znamed isBuildingLnet/minecraft/client/render/BufferBuilder;isBuilding()Z
-