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 Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexFormat
     
    void
    put(int element, float... data)
     
    void
    put(Quad quad)
    Assumes the data is already completely unpacked.
    default void
    put(net.minecraft.client.renderer.block.model.BakedQuad quad)
     
    void
    setApplyDiffuseLighting(boolean diffuse)
     
    void
    setQuadOrientation(net.minecraft.core.Direction orientation)
     
    void
    setQuadTint(int tint)
     
    void
    setTexture(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

      void put(Quad quad)
      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)