com.mojang.blaze3d.vertex

public class BufferBuilder

extends DefaultedVertexConsumer implements BufferVertexConsumer

All mapped superinterfaces:

VertexConsumer, BufferVertexConsumer

dqf
com.mojang.blaze3d.vertex.BufferBuilder
net.minecraft.class_287
net.minecraft.client.render.BufferBuilder
net.minecraft.src.C_3173_

Field summary

Modifier and TypeField
private static final int
g
GROWTH_SIZE
field_32050
MAX_BUFFER_SIZE
f_166763_
private static final org.apache.logging.log4j.Logger
h
LOGGER
field_1557
LOGGER
f_85647_
private ByteBuffer
i
buffer
field_1555
buffer
f_85648_
private final List<BufferBuilder$DrawState>
j
drawStates
field_20774
parameters
f_166764_
private int
k
lastPoppedStateIndex
field_20775
lastParameterIndex
f_166765_
private int
l
totalRenderedBytes
field_20776
buildStart
f_85651_
private int
m
nextElementByte
field_20884
elementOffset
f_85652_
private int
n
totalUploadedBytes
field_20777
nextDrawStart
f_85653_
private int
o
vertices
field_1554
vertexCount
f_85654_
private VertexFormatElement
p
currentElement
field_1558
currentElement
f_85655_
private int
q
elementIndex
field_1553
currentElementId
f_85656_
private VertexFormat
r
format
field_1565
format
f_85658_
private VertexFormat$Mode
s
mode
field_1567
drawMode
f_85657_
private boolean
t
fastFormat
field_21594
textured
f_85659_
private boolean
u
fullFormat
field_21595
hasOverlay
f_85660_
private boolean
v
building
field_1556
building
f_85661_
private Vector3f[]
w
sortingPoints
field_27348
currentParameters
f_166766_
private float
x
sortX
field_27349
cameraX
f_166767_
private float
y
sortY
field_27350
cameraY
f_166768_
private float
z
sortZ
field_27351
cameraZ
f_166769_
private boolean
A
indexOnly
field_27352
cameraOffset
f_166762_

Constructor summary

ModifierConstructor
public (int initialCapacity)

Method summary

Modifier and TypeMethod
private void
k()
ensureVertexCapacity()
method_22892()
grow()
m_85665_()
private void
c(int arg0)
ensureCapacity(int arg0)
method_1335(int arg0)
grow(int size)
m_85722_(int arg0)
private static int
d(int arg0)
roundUp(int arg0)
method_16005(int arg0)
roundBufferSize(int amount)
m_85725_(int p_85726_)
public void
a(float arg0, float arg1, float arg2)
setQuadSortOrigin(float arg0, float arg1, float arg2)
method_31948(float arg0, float arg1, float arg2)
setCameraPosition(float cameraX, float cameraY, float cameraZ)
m_166771_(float p_166773_, float p_166774_, float arg2)
public BufferBuilder$SortState
a()
getSortState()
method_1334()
popState()
m_166770_()
public void
a(dqf$b arg0)
restoreSortState(BufferBuilder$SortState arg0)
method_1324(class_287$class_5594 arg0)
restoreState(BufferBuilder$State state)
m_166775_(C_3173_$C_141546_ arg0)
public void
a(dqp$b arg0, dqp arg1)
begin(VertexFormat$Mode arg0, VertexFormat arg1)
method_1328(class_293$class_5596 arg0, class_293 arg1)
begin(VertexFormat$DrawMode drawMode, VertexFormat format)
m_166779_(C_3188_$C_141549_ p_166781_, C_3188_ arg1)
private void
a(dqp arg0)
switchFormat(VertexFormat arg0)
method_23918(class_293 arg0)
setFormat(VertexFormat format)
m_85704_(C_3188_ arg0)
private it.unimi.dsi.fastutil.ints.IntConsumer
a(dqp$a arg0)
intConsumer(VertexFormat$IndexType arg0)
method_31949(class_293$class_5595 arg0)
createConsumer(VertexFormat$IntType elementFormat)
m_166777_(C_3188_$C_141548_ arg0)
private Vector3f[]
l()
makeQuadSortingPoints()
method_31954()
buildParameterVector()
m_166794_()
private void
b(dqp$a arg0)
putSortedQuadIndices(VertexFormat$IndexType arg0)
method_31950(class_293$class_5595 arg0)
writeCameraOffset(VertexFormat$IntType elementFormat)
m_166786_(C_3188_$C_141548_ arg0)
public void
b()
end()
method_1326()
end()
m_85721_()
public void
a(int arg0, byte arg1)
putByte(int arg0, byte arg1)
method_22896(int arg0, byte arg1)
putByte(int arg0, byte arg1)
m_5672_(int p_85687_, byte arg1)
public void
a(int arg0, short arg1)
putShort(int arg0, short arg1)
method_22898(int arg0, short arg1)
putShort(int arg0, short arg1)
m_5586_(int p_85701_, short arg1)
public void
a(int arg0, float arg1)
putFloat(int arg0, float arg1)
method_22897(int arg0, float arg1)
putFloat(int arg0, float arg1)
m_5832_(int p_85690_, float arg1)
public void
c()
endVertex()
method_1344()
next()
m_5752_()
public void
d()
nextElement()
method_1325()
nextElement()
m_5751_()
public VertexConsumer
a(int arg0, int arg1, int arg2, int arg3)
color(int arg0, int arg1, int arg2, int arg3)
method_1336(int arg0, int arg1, int arg2, int arg3)
color(int arg0, int arg1, int arg2, int arg3)
m_6122_(int p_85693_, int p_85694_, int p_85695_, int arg3)
public void
a(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, int arg9, int arg10, float arg11, float arg12, float arg13)
vertex(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, int arg9, int arg10, float arg11, float arg12, float arg13)
method_23919(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, int arg9, int arg10, float arg11, float arg12, float arg13)
vertex(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7, float arg8, int arg9, int arg10, float arg11, float arg12, float arg13)
m_5954_(float p_85672_, float p_85673_, float p_85674_, float p_85675_, float p_85676_, float p_85677_, float p_85678_, float p_85679_, float p_85680_, int p_85681_, int p_85682_, float p_85683_, float p_85684_, float arg13)
public com.mojang.datafixers.util.Pair<BufferBuilder$DrawState, ByteBuffer>
e()
popNextBuffer()
method_22632()
popData()
m_85728_()
public void
f()
clear()
method_1343()
clear()
m_85729_()
public void
g()
discard()
method_23477()
reset()
m_85730_()
public VertexFormatElement
h()
currentElement()
method_22900()
getCurrentElement()
m_6297_()
public boolean
i()
building()
method_22893()
isBuilding()
m_85732_()