Class VertexConsumerWrapper

java.lang.Object
net.nikdo53.tinymultiblocklib.client.VertexConsumerWrapper
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

public abstract class VertexConsumerWrapper extends Object implements com.mojang.blaze3d.vertex.VertexConsumer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.mojang.blaze3d.vertex.VertexConsumer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VertexConsumerWrapper(com.mojang.blaze3d.vertex.VertexConsumer parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(float x, float y, float z)
     
    void
    addVertex(float x, float y, float z, int color, float u, float v, int packedOverlay, int packedLight, float normalX, float normalY, float normalZ)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose pose, float x, float y, float z)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose pose, org.joml.Vector3fc position)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(org.joml.Matrix4fc p_458205_, float p_457830_, float p_457564_, float p_457823_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(org.joml.Vector3fc p_458106_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertexWith2DPose(org.joml.Matrix3x2fc p_457647_, float p_415815_, float p_416074_)
     
    void
    putBakedQuad(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.client.resources.model.geometry.BakedQuad quad, com.mojang.blaze3d.vertex.QuadInstance instance)
     
    void
    putBlockBakedQuad(float x, float y, float z, net.minecraft.client.resources.model.geometry.BakedQuad quad, com.mojang.blaze3d.vertex.QuadInstance instance)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(float red, float green, float blue, float alpha)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int color)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int r, int g, int b, int a)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setLight(int packedLight)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setLineWidth(float p_456188_)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(float x, float y, float z)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose pose, float normalX, float normalY, float normalZ)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose pose, org.joml.Vector3fc normal)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setOverlay(int packedOverlay)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv(float u, float v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv1(int u, int v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv2(int u, int v)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

    applyBakedNormals, misc, putMutableQuad
  • Field Details

    • parent

      protected final com.mojang.blaze3d.vertex.VertexConsumer parent
  • Constructor Details

    • VertexConsumerWrapper

      public VertexConsumerWrapper(com.mojang.blaze3d.vertex.VertexConsumer parent)
  • Method Details

    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose pose, float normalX, float normalY, float normalZ)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose pose, float x, float y, float z)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(com.mojang.blaze3d.vertex.PoseStack.Pose pose, org.joml.Vector3fc normal)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(com.mojang.blaze3d.vertex.PoseStack.Pose pose, org.joml.Vector3fc position)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • putBakedQuad

      public void putBakedQuad(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.client.resources.model.geometry.BakedQuad quad, com.mojang.blaze3d.vertex.QuadInstance instance)
      Specified by:
      putBakedQuad in interface com.mojang.blaze3d.vertex.VertexConsumer
    • putBlockBakedQuad

      public void putBlockBakedQuad(float x, float y, float z, net.minecraft.client.resources.model.geometry.BakedQuad quad, com.mojang.blaze3d.vertex.QuadInstance instance)
      Specified by:
      putBlockBakedQuad in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setOverlay

      public com.mojang.blaze3d.vertex.VertexConsumer setOverlay(int packedOverlay)
      Specified by:
      setOverlay in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setLight

      public com.mojang.blaze3d.vertex.VertexConsumer setLight(int packedLight)
      Specified by:
      setLight in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int color)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(float red, float green, float blue, float alpha)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public void addVertex(float x, float y, float z, int color, float u, float v, int packedOverlay, int packedLight, float normalX, float normalY, float normalZ)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int r, int g, int b, int a)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv

      public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v)
      Specified by:
      setUv in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv1

      public com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v)
      Specified by:
      setUv1 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv2

      public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v)
      Specified by:
      setUv2 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(org.joml.Vector3fc p_458106_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(org.joml.Matrix4fc p_458205_, float p_457830_, float p_457564_, float p_457823_)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • addVertexWith2DPose

      public com.mojang.blaze3d.vertex.VertexConsumer addVertexWith2DPose(org.joml.Matrix3x2fc p_457647_, float p_415815_, float p_416074_)
      Specified by:
      addVertexWith2DPose in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setLineWidth

      public com.mojang.blaze3d.vertex.VertexConsumer setLineWidth(float p_456188_)
      Specified by:
      setLineWidth in interface com.mojang.blaze3d.vertex.VertexConsumer