com.mojang.blaze3d.vertex

public class BufferBuilder

extends DefaultedVertexConsumer implements BufferVertexConsumer

All mapped superinterfaces:

VertexConsumer, BufferVertexConsumer

dhg
com.mojang.blaze3d.vertex.BufferBuilder
net.minecraft.class_287
net.minecraft.client.render.BufferBuilder
net.minecraft.client.renderer.BufferBuilder

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
g
LOGGER
field_1557
LOGGER
field_187316_a
private ByteBuffer
h
buffer
field_1555
buffer
field_179001_a
private final List<BufferBuilder$DrawState>
i
vertexCounts
field_20774
parameters
field_227821_i_
private int
j
lastRenderedCountIndex
field_20775
lastParameterIndex
field_227822_j_
private int
k
totalRenderedBytes
field_20776
buildStart
field_227823_k_
private int
l
nextElementByte
field_20884
elementOffset
field_227824_l_
private int
m
totalUploadedBytes
field_20777
nextDrawStart
field_227825_m_
private int
n
vertices
field_1554
vertexCount
field_178997_d
private VertexFormatElement
o
currentElement
field_1558
currentElement
field_181677_f
private int
p
elementIndex
field_1553
currentElementId
field_181678_g
private int
q
mode
field_1567
drawMode
field_179006_k
private VertexFormat
r
format
field_1565
format
field_179011_q
private boolean
s
fastFormat
field_21594
field_21594
field_227826_s_
private boolean
t
fullFormat
field_21595
field_21595
field_227827_t_
private boolean
u
building
field_1556
building
field_179010_r

Constructor summary

ModifierConstructor
public (int initialCapacity)

Method summary

Modifier and TypeMethod
protected void
a()
ensureVertexCapacity()
method_22892()
grow()
func_227831_b_()
private void
c(int arg0)
ensureCapacity(int arg0)
method_1335(int arg0)
grow(int size)
func_181670_b(int arg0)
private static int
d(int arg0)
roundUp(int arg0)
method_16005(int arg0)
roundBufferSize(int amount)
func_216566_c(int arg0)
public void
a(float arg0, float arg1, float arg2)
sortQuads(float arg0, float arg1, float arg2)
method_1341(float arg0, float arg1, float arg2)
sortQuads(float cameraX, float cameraY, float cameraZ)
func_181674_a(float arg0, float arg1, float arg2)
private void
a(FloatBuffer arg0, int arg1)
limitToVertex(FloatBuffer arg0, int arg1)
method_22628(FloatBuffer arg0, int arg1)
method_22628(FloatBuffer arg0, int arg1)
func_227829_a_(FloatBuffer arg0, int arg1)
public BufferBuilder$State
b()
getState()
method_1334()
popState()
func_181672_a()
private static float
a(FloatBuffer arg0, float arg1, float arg2, float arg3, int arg4, int arg5)
getQuadDistanceFromPlayer(FloatBuffer arg0, float arg1, float arg2, float arg3, int arg4, int arg5)
method_1319(FloatBuffer arg0, float arg1, float arg2, float arg3, int arg4, int arg5)
getDistanceSq(FloatBuffer buffer, float x, float y, float z, int arg4, int arg5)
func_181665_a(FloatBuffer arg0, float arg1, float arg2, float arg3, int arg4, int arg5)
public void
a(dhg$b arg0)
restoreState(BufferBuilder$State arg0)
method_1324(class_287$class_288 arg0)
restoreState(BufferBuilder$State arg0)
func_178993_a(BufferBuilder$State arg0)
public void
a(int arg0, dhq arg1)
begin(int arg0, VertexFormat arg1)
method_1328(int arg0, class_293 arg1)
begin(int drawMode, VertexFormat format)
func_181668_a(int arg0, VertexFormat arg1)
private void
a(dhq arg0)
switchFormat(VertexFormat arg0)
method_23918(class_293 arg0)
method_23918(VertexFormat arg0)
func_227828_a_(VertexFormat arg0)
public void
c()
end()
method_1326()
end()
func_178977_d()
public void
a(int arg0, byte arg1)
putByte(int arg0, byte arg1)
method_22896(int arg0, byte arg1)
putByte(int arg0, byte arg1)
func_225589_a_(int arg0, 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)
func_225591_a_(int arg0, 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)
func_225590_a_(int arg0, float arg1)
public void
d()
endVertex()
method_1344()
next()
func_181675_d()
public void
e()
nextElement()
method_1325()
nextElement()
func_181667_k()
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)
func_225586_a_(int arg0, int arg1, int arg2, 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)
func_225588_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)
public com.mojang.datafixers.util.Pair<BufferBuilder$DrawState, ByteBuffer>
f()
popNextBuffer()
method_22632()
popData()
func_227832_f_()
public void
g()
clear()
method_1343()
clear()
func_178965_a()
public void
h()
discard()
method_23477()
reset()
func_227833_h_()
public VertexFormatElement
i()
currentElement()
method_22900()
getCurrentElement()
func_225592_i_()
public boolean
j()
building()
method_22893()
isBuilding()
func_227834_j_()