Record Class VertexMultiConsumer.Multiple

java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexMultiConsumer.Multiple
All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
Enclosing class:
VertexMultiConsumer

static record VertexMultiConsumer.Multiple(VertexConsumer[] delegates) extends Record implements VertexConsumer
  • Field Details

    • delegates

      private final VertexConsumer[] delegates
      The field for the delegates record component.
  • Constructor Details

    • Multiple

      Multiple(VertexConsumer[] delegates)
      Creates an instance of a Multiple record class.
      Parameters:
      delegates - the value for the delegates record component
  • Method Details

    • forEach

      private void forEach(Consumer<VertexConsumer> p_167145_)
    • addVertex

      public VertexConsumer addVertex(float p_350626_, float p_351046_, float p_351003_)
      Specified by:
      addVertex in interface VertexConsumer
    • setColor

      public VertexConsumer setColor(int p_167130_, int p_167131_, int p_167132_, int p_167133_)
      Specified by:
      setColor in interface VertexConsumer
    • setUv

      public VertexConsumer setUv(float p_167084_, float p_167085_)
      Specified by:
      setUv in interface VertexConsumer
    • setUv1

      public VertexConsumer setUv1(int p_350622_, int p_350367_)
      Specified by:
      setUv1 in interface VertexConsumer
    • setUv2

      public VertexConsumer setUv2(int p_350498_, int p_350436_)
      Specified by:
      setUv2 in interface VertexConsumer
    • setNormal

      public VertexConsumer setNormal(float p_167147_, float p_167148_, float p_167149_)
      Specified by:
      setNormal in interface VertexConsumer
    • addVertex

      public void addVertex(float p_350950_, float p_350670_, float p_350366_, int p_350619_, float p_350871_, float p_350850_, int p_350499_, int p_350318_, float p_350404_, float p_350988_, float p_350991_)
      Specified by:
      addVertex in interface 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.
    • delegates

      public VertexConsumer[] delegates()
      Returns the value of the delegates record component.
      Returns:
      the value of the delegates record component