public class BakedQuadBuilder 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 boolean |
full |
private Direction |
orientation |
private static int |
SIZE |
private TextureAtlasSprite |
texture |
private int |
tint |
private float[][][] |
unpackedData |
private int |
vertices |
| Constructor and Description |
|---|
BakedQuadBuilder() |
BakedQuadBuilder(TextureAtlasSprite texture) |
| Modifier and Type | Method and Description |
|---|---|
BakedQuad |
build() |
VertexFormat |
getVertexFormat() |
void |
put(int element,
float... data) |
void |
setApplyDiffuseLighting(boolean diffuse) |
void |
setContractUVs(boolean value) |
void |
setQuadOrientation(Direction orientation) |
void |
setQuadTint(int tint) |
void |
setTexture(TextureAtlasSprite texture) |
private static final int SIZE
private final float[][][] unpackedData
private int tint
private Direction orientation
private TextureAtlasSprite texture
private boolean applyDiffuseLighting
private int vertices
private int elements
private boolean full
private boolean contractUVs
private final float eps
public BakedQuadBuilder()
public BakedQuadBuilder(TextureAtlasSprite texture)
public void setContractUVs(boolean value)
public VertexFormat getVertexFormat()
getVertexFormat in interface IVertexConsumerpublic void setQuadTint(int tint)
setQuadTint in interface IVertexConsumerpublic void setQuadOrientation(Direction 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 BakedQuad build()