Class BakedQuadBuilder
java.lang.Object
net.minecraftforge.client.model.pipeline.BakedQuadBuilder
- All Implemented Interfaces:
IVertexConsumer
Allows easier building of BakedQuad objects. During building, data is stored
unpacked as floats, but is packed into the typical int array format on build.
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private int
private float
private boolean
private Direction
private static int
private TextureAtlasSprite
private int
private float[][][]
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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)
-
Field Details
-
SIZE
private static final int SIZE -
unpackedData
private final float[][][] unpackedData -
tint
private int tint -
orientation
-
texture
-
applyDiffuseLighting
private boolean applyDiffuseLighting -
vertices
private int vertices -
elements
private int elements -
full
private boolean full -
contractUVs
private boolean contractUVs -
eps
private final float eps- See Also:
- Constant Field Values
-
-
Constructor Details
-
BakedQuadBuilder
public BakedQuadBuilder() -
BakedQuadBuilder
-
-
Method Details
-
setContractUVs
public void setContractUVs(boolean value) -
getVertexFormat
- Specified by:
getVertexFormat
in interfaceIVertexConsumer
- Returns:
- the format that should be used for passed data.
-
setQuadTint
public void setQuadTint(int tint)- Specified by:
setQuadTint
in interfaceIVertexConsumer
-
setQuadOrientation
- Specified by:
setQuadOrientation
in interfaceIVertexConsumer
-
setTexture
- Specified by:
setTexture
in interfaceIVertexConsumer
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse)- Specified by:
setApplyDiffuseLighting
in interfaceIVertexConsumer
-
put
public void put(int element, float... data)- Specified by:
put
in interfaceIVertexConsumer
-
build
-