Record Class VertexMultiConsumer.Multiple

java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexMultiConsumer.Multiple
All Implemented Interfaces:
VertexConsumer, IForgeVertexConsumer
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_167147_, float p_167148_, float p_167149_)
      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_343411_, int p_342288_)
      Specified by:
      setUv1 in interface VertexConsumer
    • setUv2

      public VertexConsumer setUv2(int p_343645_, int p_344197_)
      Specified by:
      setUv2 in interface VertexConsumer
    • setNormal

      public VertexConsumer setNormal(float p_343750_, float p_344366_, float p_342844_)
      Specified by:
      setNormal in interface VertexConsumer
    • addVertex

      public void addVertex(float p_342518_, float p_344848_, float p_345186_, int p_343970_, float p_345395_, float p_342765_, int p_345332_, int p_342050_, float p_343977_, float p_342883_, float p_344334_)
      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