Record Class Display.RenderState

java.lang.Object
java.lang.Record
net.minecraft.world.entity.Display.RenderState
Enclosing class:
Display

public static record Display.RenderState(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) extends Record
  • Field Details

    • transformation

      private final Display.GenericInterpolator<Transformation> transformation
      The field for the transformation record component.
    • billboardConstraints

      private final Display.BillboardConstraints billboardConstraints
      The field for the billboardConstraints record component.
    • brightnessOverride

      private final int brightnessOverride
      The field for the brightnessOverride record component.
    • shadowRadius

      private final Display.FloatInterpolator shadowRadius
      The field for the shadowRadius record component.
    • shadowStrength

      private final Display.FloatInterpolator shadowStrength
      The field for the shadowStrength record component.
    • glowColorOverride

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

    • RenderState

      public RenderState(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride)
      Creates an instance of a RenderState record class.
      Parameters:
      transformation - the value for the transformation record component
      billboardConstraints - the value for the billboardConstraints record component
      brightnessOverride - the value for the brightnessOverride record component
      shadowRadius - the value for the shadowRadius record component
      shadowStrength - the value for the shadowStrength record component
      glowColorOverride - the value for the glowColorOverride record component
  • Method Details

    • 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.
    • transformation

      public Display.GenericInterpolator<Transformation> transformation()
      Returns the value of the transformation record component.
      Returns:
      the value of the transformation record component
    • billboardConstraints

      public Display.BillboardConstraints billboardConstraints()
      Returns the value of the billboardConstraints record component.
      Returns:
      the value of the billboardConstraints record component
    • brightnessOverride

      public int brightnessOverride()
      Returns the value of the brightnessOverride record component.
      Returns:
      the value of the brightnessOverride record component
    • shadowRadius

      public Display.FloatInterpolator shadowRadius()
      Returns the value of the shadowRadius record component.
      Returns:
      the value of the shadowRadius record component
    • shadowStrength

      public Display.FloatInterpolator shadowStrength()
      Returns the value of the shadowStrength record component.
      Returns:
      the value of the shadowStrength record component
    • glowColorOverride

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