Record Class OutlineBufferSource.EntityOutlineGenerator

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.OutlineBufferSource.EntityOutlineGenerator
All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
Enclosing class:
OutlineBufferSource

static record OutlineBufferSource.EntityOutlineGenerator(VertexConsumer delegate, int color) extends Record implements VertexConsumer
  • Field Details

    • delegate

      private final VertexConsumer delegate
      The field for the delegate record component.
    • color

      private final int color
      The field for the color record component.
  • Constructor Details

    • EntityOutlineGenerator

      public EntityOutlineGenerator(VertexConsumer p_109943_, int p_109944_, int p_109945_, int p_109946_, int p_109947_)
    • EntityOutlineGenerator

      EntityOutlineGenerator(VertexConsumer delegate, int color)
      Creates an instance of a EntityOutlineGenerator record class.
      Parameters:
      delegate - the value for the delegate record component
      color - the value for the color record component
  • Method Details

    • addVertex

      public VertexConsumer addVertex(float p_350357_, float p_350369_, float p_350557_)
      Specified by:
      addVertex in interface VertexConsumer
    • setColor

      public VertexConsumer setColor(int p_350802_, int p_351011_, int p_350273_, int p_351040_)
      Specified by:
      setColor in interface VertexConsumer
    • setUv

      public VertexConsumer setUv(float p_350507_, float p_350470_)
      Specified by:
      setUv in interface VertexConsumer
    • setUv1

      public VertexConsumer setUv1(int p_350412_, int p_350568_)
      Specified by:
      setUv1 in interface VertexConsumer
    • setUv2

      public VertexConsumer setUv2(int p_350636_, int p_351006_)
      Specified by:
      setUv2 in interface VertexConsumer
    • setNormal

      public VertexConsumer setNormal(float p_350484_, float p_350765_, float p_350737_)
      Specified by:
      setNormal 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. 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 VertexConsumer delegate()
      Returns the value of the delegate record component.
      Returns:
      the value of the delegate record component
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component