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 IVertexConsumer
public void setContractUVs(boolean value)
public void setQuadTint(int tint)
setQuadTint
in interface IVertexConsumer
public void setQuadOrientation(EnumFacing orientation)
setQuadOrientation
in interface IVertexConsumer
public void setTexture(TextureAtlasSprite texture)
setTexture
in interface IVertexConsumer
public void setApplyDiffuseLighting(boolean diffuse)
setApplyDiffuseLighting
in interface IVertexConsumer
public void put(int element, float... data)
put
in interface IVertexConsumer
public UnpackedBakedQuad build()