Record Class ColoringVertexConsumer

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

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
    float
    Returns the value of the alpha record component.
    float
    Returns the value of the blue record component.
    com.mojang.blaze3d.vertex.VertexConsumer
    color(int r, int g, int b, int a)
     
    void
    defaultColor(int r, int g, int b, int a)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    Returns the value of the delegate record component.
    void
     
    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.
    com.mojang.blaze3d.vertex.VertexConsumer
    normal(float x, float y, float z)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    overlayCoords(int u, int v)
     
    float
    red()
    Returns the value of the red record component.
    final String
    Returns a string representation of this record class.
    void
     
    com.mojang.blaze3d.vertex.VertexConsumer
    uv(float u, float v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    uv2(int u, int v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    vertex(double x, double y, double z)
     

    Methods inherited from class java.lang.Object

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

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

    color, color, normal, overlayCoords, putBulkData, putBulkData, uv2, vertex, vertex
  • 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

    • vertex

      public com.mojang.blaze3d.vertex.VertexConsumer vertex(double x, double y, double z)
      Specified by:
      vertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • color

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

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

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

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

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

      public void endVertex()
      Specified by:
      endVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • defaultColor

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

      public void unsetDefaultColor()
      Specified by:
      unsetDefaultColor 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