Record Class OutlineBufferSource.EntityOutlineGenerator

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.OutlineBufferSource.EntityOutlineGenerator
All Implemented Interfaces:
VertexConsumer, IForgeVertexConsumer
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_342958_, float p_343747_, float p_344781_)
      Specified by:
      addVertex in interface VertexConsumer
    • setColor

      public VertexConsumer setColor(int p_343483_, int p_343623_, int p_342060_, int p_342967_)
      Specified by:
      setColor in interface VertexConsumer
    • setUv

      public VertexConsumer setUv(float p_342182_, float p_342633_)
      Specified by:
      setUv in interface VertexConsumer
    • setUv1

      public VertexConsumer setUv1(int p_344004_, int p_342637_)
      Specified by:
      setUv1 in interface VertexConsumer
    • setUv2

      public VertexConsumer setUv2(int p_343797_, int p_342797_)
      Specified by:
      setUv2 in interface VertexConsumer
    • setNormal

      public VertexConsumer setNormal(float p_343114_, float p_344978_, float p_343069_)
      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