com.mojang.blaze3d.vertex

public class BufferBuilder

extends DefaultedVertexConsumer implements BufferVertexConsumer

All mapped superinterfaces:

VertexConsumer, BufferVertexConsumer

ezv
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
f
MAX_GROWTH_SIZE
field_46839
ROUND_SIZE_CHANGE
f_303148_
private static final org.slf4j.Logger
g
LOGGER
field_1557
LOGGER
f_85647_
private ByteBuffer
h
buffer
field_1555
buffer
f_85648_
private boolean
i
closed
field_46840
closed
f_303442_
private int
j
renderedBufferCount
field_39061
builtBufferCount
f_231156_
private int
k
renderedBufferPointer
field_39062
batchOffset
f_231157_
private int
l
nextElementByte
field_20884
elementOffset
f_85652_
private int
m
vertices
field_1554
vertexCount
f_85654_
private VertexFormatElement
n
currentElement
field_1558
currentElement
f_85655_
private int
o
elementIndex
field_1553
currentElementId
f_85656_
private VertexFormat
p
format
field_1565
format
f_85658_
private VertexFormat$Mode
q
mode
field_1567
drawMode
f_85657_
private boolean
r
fastFormat
field_21594
canSkipElementChecks
f_85659_
private boolean
s
fullFormat
field_21595
hasOverlay
f_85660_
private boolean
t
building
field_1556
building
f_85661_
private org.joml.Vector3f[]
u
sortingPoints
field_27348
sortingPrimitiveCenters
f_166766_
private VertexSorting
v
sorting
field_43358
sorter
f_276463_
private boolean
w
indexOnly
field_27352
hasNoVertexBuffer
f_166762_

Constructor summary

ModifierConstructor
public (int initialCapacity)

Method summary

Modifier and TypeMethod
private void
m()
ensureVertexCapacity()
method_22892()
grow()
m_85665_()
private void
d(int arg0)
ensureCapacity(int arg0)
method_1335(int arg0)
grow(int size)
m_85722_(int arg0)
public void
a(fai arg0)
setQuadSorting(VertexSorting arg0)
method_49904(class_8251 arg0)
setSorter(VertexSorter sorter)
m_277127_(C_276405_ arg0)
public BufferBuilder$SortState
a()
getSortState()
method_1334()
getSortingData()
m_166770_()
private void
n()
checkOpen()
method_54559()
ensureNotClosed()
m_306046_()
public void
a(ezv$c arg0)
restoreSortState(BufferBuilder$SortState arg0)
method_1324(class_287$class_5594 arg0)
beginSortedIndexBuffer(BufferBuilder$TransparentSortingData state)
m_166775_(C_3173_$C_141546_ arg0)
public void
a(faf$b arg0, faf 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(faf 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(int arg0, faf$a arg1)
intConsumer(int arg0, VertexFormat$IndexType arg1)
method_31949(int arg0, class_293$class_5595 arg1)
getIndexConsumer(int offset, VertexFormat$IndexType indexType)
m_231158_(int p_231160_, C_3188_$C_141548_ arg1)
private org.joml.Vector3f[]
o()
makeQuadSortingPoints()
method_31954()
buildPrimitiveCenters()
m_166794_()
private void
a(faf$a arg0)
putSortedQuadIndices(VertexFormat$IndexType arg0)
method_31950(class_293$class_5595 arg0)
writeSortedIndices(VertexFormat$IndexType indexType)
m_166786_(C_3188_$C_141548_ arg0)
public boolean
b()
isCurrentBatchEmpty()
method_43574()
isBatchEmpty()
m_231164_()
public BufferBuilder$RenderedBuffer
c()
endOrDiscardIfEmpty()
method_43575()
endNullable()
m_231168_()
public BufferBuilder$RenderedBuffer
d()
end()
method_1326()
end()
m_231175_()
private void
p()
ensureDrawing()
method_43577()
ensureBuilding()
m_231176_()
private BufferBuilder$RenderedBuffer
q()
storeRenderedBuffer()
method_43578()
build()
m_231177_()
private void
r()
reset()
method_43579()
resetBuilding()
m_231178_()
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
e()
endVertex()
method_1344()
next()
m_5752_()
public void
f()
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)
void
s()
releaseRenderedBuffer()
method_43580()
releaseBuiltBuffer()
m_231179_()
public void
g()
clear()
method_1343()
clear()
m_85729_()
public void
h()
discard()
method_23477()
reset()
m_85730_()
public void
i()
release()
method_54558()
close()
m_306688_()
public VertexFormatElement
j()
currentElement()
method_22900()
getCurrentElement()
m_6297_()
public boolean
k()
building()
method_22893()
isBuilding()
m_85732_()
ByteBuffer
c(int arg0, int arg1)
bufferSlice(int arg0, int arg1)
method_43576(int arg0, int arg1)
slice(int start, int end)
m_231169_(int p_231171_, int arg1)