Record Class ColoringVertexConsumer

java.lang.Object
java.lang.Record
net.createmod.catnip.impl.client.render.ColoringVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

public record ColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha) extends Record implements com.mojang.blaze3d.vertex.VertexConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha)
    Creates an instance of a ColoringVertexConsumer record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(float x, float y, float z)
     
    float
    Returns the value of the alpha record component.
    float
    Returns the value of the blue record component.
    com.mojang.blaze3d.vertex.VertexConsumer
    Returns the value of the delegate record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the green record component.
    final int
    Returns a hash code value for this object.
    float
    red()
    Returns the value of the red record component.
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int r, int g, int b, int a)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(float x, float y, float z)
     
    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)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    applyBakedLighting, applyBakedNormals, misc, putBulkData

    Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer

    addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
  • Constructor Details

    • ColoringVertexConsumer

      public ColoringVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate, float red, float green, float blue, float alpha)
      Creates an instance of a ColoringVertexConsumer record class.
      Parameters:
      delegate - the value for the delegate record component
      red - the value for the red record component
      green - the value for the green record component
      blue - the value for the blue record component
      alpha - the value for the alpha record component
  • Method Details

    • 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
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • delegate

      public com.mojang.blaze3d.vertex.VertexConsumer delegate()
      Returns the value of the delegate record component.
      Returns:
      the value of the delegate record component
    • red

      public float red()
      Returns the value of the red record component.
      Returns:
      the value of the red record component
    • green

      public float green()
      Returns the value of the green record component.
      Returns:
      the value of the green record component
    • blue

      public float blue()
      Returns the value of the blue record component.
      Returns:
      the value of the blue record component
    • alpha

      public float alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component