com.mojang.blaze3d.vertex

public class BufferBuilder

extends DefaultedVertexConsumer implements BufferVertexConsumer

All mapped superinterfaces:

VertexConsumer, BufferVertexConsumer

eal
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
GROWTH_SIZE
field_32050
MAX_BUFFER_SIZE
f_166763_
private static final org.slf4j.Logger
g
LOGGER
field_1557
LOGGER
f_85647_
private ByteBuffer
h
buffer
field_1555
buffer
f_85648_
private int
i
renderedBufferCount
field_39061
builtBufferCount
f_231156_
private int
j
renderedBufferPointer
field_39062
batchOffset
f_231157_
private int
k
nextElementByte
field_20884
elementOffset
f_85652_
private int
l
vertices
field_1554
vertexCount
f_85654_
private VertexFormatElement
m
currentElement
field_1558
currentElement
f_85655_
private int
n
elementIndex
field_1553
currentElementId
f_85656_
private VertexFormat
o
format
field_1565
format
f_85658_
private VertexFormat$Mode
p
mode
field_1567
drawMode
f_85657_
private boolean
q
fastFormat
field_21594
textured
f_85659_
private boolean
r
fullFormat
field_21595
hasOverlay
f_85660_
private boolean
s
building
field_1556
building
f_85661_
private Vector3f[]
t
sortingPoints
field_27348
sortingPrimitiveCenters
f_166766_
private float
u
sortX
field_27349
sortingCameraX
f_166767_
private float
v
sortY
field_27350
sortingCameraY
f_166768_
private float
w
sortZ
field_27351
sortingCameraZ
f_166769_
private boolean
x
indexOnly
field_27352
hasNoVertexBuffer
f_166762_

Constructor summary

ModifierConstructor
public (int initialCapacity)

Method summary

Modifier and TypeMethod
private void
l()
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)
private static int
e(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)
sortFrom(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(eal$c 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(eav$b arg0, eav 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(eav 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, eav$a arg1)
intConsumer(int arg0, VertexFormat$IndexType arg1)
method_31949(int arg0, class_293$class_5595 arg1)
createIndexWriter(int offset, VertexFormat$IndexType indexType)
m_231158_(int p_231160_, C_3188_$C_141548_ arg1)
private Vector3f[]
m()
makeQuadSortingPoints()
method_31954()
buildPrimitiveCenters()
m_166794_()
private void
a(eav$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
n()
ensureDrawing()
method_43577()
ensureBuilding()
m_231176_()
private BufferBuilder$RenderedBuffer
o()
storeRenderedBuffer()
method_43578()
build()
m_231177_()
private void
p()
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
q()
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 VertexFormatElement
i()
currentElement()
method_22900()
getCurrentElement()
m_6297_()
public boolean
j()
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)