public static class UnpackedBakedQuad.Builder extends java.lang.Object implements IVertexConsumer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
applyDiffuseLighting |
private boolean |
contractUVs |
private int |
elements |
private float |
eps |
private VertexFormat |
format |
private boolean |
full |
private EnumFacing |
orientation |
private TextureAtlasSprite |
texture |
private int |
tint |
private float[][][] |
unpackedData |
private int |
vertices |
| Constructor and Description |
|---|
Builder(VertexFormat format) |
| Modifier and Type | Method and Description |
|---|---|
UnpackedBakedQuad |
build() |
VertexFormat |
getVertexFormat() |
void |
put(int element,
float... data) |
void |
setApplyDiffuseLighting(boolean diffuse) |
void |
setContractUVs(boolean value) |
void |
setQuadOrientation(EnumFacing orientation) |
void |
setQuadTint(int tint) |
void |
setTexture(TextureAtlasSprite texture) |
private final VertexFormat format
private final float[][][] unpackedData
private int tint
private EnumFacing orientation
private TextureAtlasSprite texture
private boolean applyDiffuseLighting
private int vertices
private int elements
private boolean full
private boolean contractUVs
private final float eps
public Builder(VertexFormat format)
public VertexFormat getVertexFormat()
getVertexFormat in interface IVertexConsumerpublic void setContractUVs(boolean value)
public void setQuadTint(int tint)
setQuadTint in interface IVertexConsumerpublic void setQuadOrientation(EnumFacing orientation)
setQuadOrientation in interface IVertexConsumerpublic void setTexture(TextureAtlasSprite texture)
setTexture in interface IVertexConsumerpublic void setApplyDiffuseLighting(boolean diffuse)
setApplyDiffuseLighting in interface IVertexConsumerpublic void put(int element,
float... data)
put in interface IVertexConsumerpublic UnpackedBakedQuad build()