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 IVertexConsumerparent
-
Constructor Summary
Constructors Constructor Description VertexTransformer(IVertexConsumer parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexFormatgetVertexFormat()voidput(int element, float... data)voidsetApplyDiffuseLighting(boolean diffuse)voidsetQuadOrientation(Direction orientation)voidsetQuadTint(int tint)voidsetTexture(TextureAtlasSprite texture)
-
-
-
Field Detail
-
parent
protected final IVertexConsumer parent
-
-
Constructor Detail
-
VertexTransformer
public VertexTransformer(IVertexConsumer parent)
-
-
Method Detail
-
getVertexFormat
public VertexFormat getVertexFormat()
- Specified by:
getVertexFormatin interfaceIVertexConsumer- Returns:
- the format that should be used for passed data.
-
setQuadTint
public void setQuadTint(int tint)
- Specified by:
setQuadTintin interfaceIVertexConsumer
-
setTexture
public void setTexture(TextureAtlasSprite texture)
- Specified by:
setTexturein interfaceIVertexConsumer
-
setQuadOrientation
public void setQuadOrientation(Direction orientation)
- Specified by:
setQuadOrientationin interfaceIVertexConsumer
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse)
- Specified by:
setApplyDiffuseLightingin interfaceIVertexConsumer
-
put
public void put(int element, float... data)- Specified by:
putin interfaceIVertexConsumer
-
-