public class BufferBuilder extends DefaultColorVertexBuilder implements IVertexConsumer
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferBuilder.DrawState |
static class |
BufferBuilder.State |
defaultAlpha, defaultBlue, defaultColor, defaultGreen, defaultRed| Constructor and Description |
|---|
BufferBuilder(int bufferSizeIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float texU,
float texV,
int overlayUV,
int lightmapUV,
float normalX,
float normalY,
float normalZ) |
void |
begin(int glMode,
VertexFormat format) |
IVertexBuilder |
color(int red,
int green,
int blue,
int alpha) |
void |
discard() |
void |
endVertex() |
void |
finishDrawing() |
VertexFormatElement |
getCurrentElement() |
com.mojang.datafixers.util.Pair<BufferBuilder.DrawState,java.nio.ByteBuffer> |
getNextBuffer() |
VertexFormat |
getVertexFormat() |
BufferBuilder.State |
getVertexState() |
protected void |
growBuffer() |
boolean |
isDrawing() |
void |
nextVertexFormatIndex() |
void |
putBulkData(java.nio.ByteBuffer buffer) |
void |
putByte(int indexIn,
byte byteIn) |
void |
putFloat(int indexIn,
float floatIn) |
void |
putShort(int indexIn,
short shortIn) |
void |
reset() |
void |
setVertexState(BufferBuilder.State state) |
void |
sortVertexData(float cameraX,
float cameraY,
float cameraZ) |
setDefaultColorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlightmap, normal, normalInt, overlay, pos, tex, texShortaddQuad, addQuad, color, lightmap, normal, overlay, posaddVertexData, addVertexData, addVertexData, addVertexData, applyBakedLighting, applyBakedNormals, getVertexBuilderprotected void growBuffer()
public void sortVertexData(float cameraX,
float cameraY,
float cameraZ)
public BufferBuilder.State getVertexState()
public void setVertexState(BufferBuilder.State state)
public void begin(int glMode,
VertexFormat format)
public void finishDrawing()
public void putByte(int indexIn,
byte byteIn)
putByte in interface IVertexConsumerpublic void putShort(int indexIn,
short shortIn)
putShort in interface IVertexConsumerpublic void putFloat(int indexIn,
float floatIn)
putFloat in interface IVertexConsumerpublic void endVertex()
endVertex in interface IVertexBuilderpublic void nextVertexFormatIndex()
nextVertexFormatIndex in interface IVertexConsumerpublic IVertexBuilder color(int red, int green, int blue, int alpha)
color in interface IVertexBuildercolor in interface IVertexConsumerpublic void addVertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float texU,
float texV,
int overlayUV,
int lightmapUV,
float normalX,
float normalY,
float normalZ)
addVertex in interface IVertexBuilderpublic com.mojang.datafixers.util.Pair<BufferBuilder.DrawState,java.nio.ByteBuffer> getNextBuffer()
public void reset()
public void discard()
public VertexFormatElement getCurrentElement()
getCurrentElement in interface IVertexConsumerpublic boolean isDrawing()
public void putBulkData(java.nio.ByteBuffer buffer)
public VertexFormat getVertexFormat()