Package codechicken.lib.model
Interface IVertexConsumer
- All Known Subinterfaces:
IPipelineConsumer
- All Known Implementing Classes:
BakedPipeline,BakedVertexSource,Quad,QuadAlphaOverride,QuadClamper,QuadCornerKicker,QuadFaceStripper,QuadReInterpolator,QuadTinter,QuadTransformer
public interface IVertexConsumer
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.blaze3d.vertex.VertexFormatvoidput(int element, float... data) voidAssumes the data is already completely unpacked.default voidput(net.minecraft.client.renderer.block.model.BakedQuad quad) voidsetApplyDiffuseLighting(boolean diffuse) voidsetQuadOrientation(net.minecraft.core.Direction orientation) voidsetQuadTint(int tint) voidsetTexture(net.minecraft.client.renderer.texture.TextureAtlasSprite texture)
-
Method Details
-
getVertexFormat
com.mojang.blaze3d.vertex.VertexFormat getVertexFormat() -
setQuadTint
void setQuadTint(int tint) -
setQuadOrientation
void setQuadOrientation(net.minecraft.core.Direction orientation) -
setApplyDiffuseLighting
void setApplyDiffuseLighting(boolean diffuse) -
setTexture
void setTexture(net.minecraft.client.renderer.texture.TextureAtlasSprite texture) -
put
void put(int element, float... data) -
put
Assumes the data is already completely unpacked. You must always copy the data from the quad provided to an internal cache. basically: this.quad.put(quad);- Parameters:
quad- The quad to copy data from.
-
put
default void put(net.minecraft.client.renderer.block.model.BakedQuad quad)
-