Record Class PosColTexLightVertexConsumer

java.lang.Object
java.lang.Record
dev.latvian.mods.klib.render.vertexconsumer.PosColTexLightVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, KLibVertexConsumer, DelegateVertexConsumer, VertexCallback, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

public record PosColTexLightVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate) extends Record implements DelegateVertexConsumer
  • Constructor Details

    • PosColTexLightVertexConsumer

      public PosColTexLightVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer delegate)
      Creates an instance of a PosColTexLightVertexConsumer record class.
      Parameters:
      delegate - the value for the delegate record component
  • Method Details

    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int red, int green, int blue, int alpha)
      Specified by:
      setColor in interface DelegateVertexConsumer
      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 DelegateVertexConsumer
      Specified by:
      setUv in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv2

      public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v)
      Specified by:
      setUv2 in interface DelegateVertexConsumer
      Specified by:
      setUv2 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
      Specified by:
      delegate in interface DelegateVertexConsumer
      Returns:
      the value of the delegate record component