Class VertexTransformer
- java.lang.Object
-
- net.minecraftforge.client.model.pipeline.VertexTransformer
-
- All Implemented Interfaces:
IVertexConsumer
- Direct Known Subclasses:
LightUtil.ItemConsumer
,TRSRTransformer
public class VertexTransformer extends java.lang.Object implements IVertexConsumer
-
-
Field Summary
Fields Modifier and Type Field Description protected IVertexConsumer
parent
-
Constructor Summary
Constructors Constructor Description VertexTransformer(IVertexConsumer parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexFormat
getVertexFormat()
void
put(int element, float... data)
void
setApplyDiffuseLighting(boolean diffuse)
void
setQuadOrientation(Direction orientation)
void
setQuadTint(int tint)
void
setTexture(TextureAtlasSprite texture)
-
-
-
Field Detail
-
parent
protected final IVertexConsumer parent
-
-
Constructor Detail
-
VertexTransformer
public VertexTransformer(IVertexConsumer parent)
-
-
Method Detail
-
getVertexFormat
public VertexFormat 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
-
setTexture
public void setTexture(TextureAtlasSprite texture)
- Specified by:
setTexture
in interfaceIVertexConsumer
-
setQuadOrientation
public void setQuadOrientation(Direction orientation)
- Specified by:
setQuadOrientation
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
-
-