Record Class DisplayEntity.TextDisplayEntity.Data

java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.DisplayEntity.TextDisplayEntity.Data
Record Components:
text -
lineWidth -
textOpacity -
backgroundColor -
flags -
Enclosing class:
DisplayEntity.TextDisplayEntity

public static record DisplayEntity.TextDisplayEntity.Data(Text text, int lineWidth, DisplayEntity.IntLerper textOpacity, DisplayEntity.IntLerper backgroundColor, byte flags) extends Record
Mappings:
Namespace Name
official blu$l$e
intermediary net/minecraft/class_8113$class_8123$class_8230
named net/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data
official a
intermediary comp_1334
named text
official b
intermediary comp_1335
named lineWidth
official c
intermediary comp_1336
named textOpacity
official d
intermediary comp_1337
named backgroundColor
official e
intermediary comp_1338
named flags
  • Field Details

    • text

      private final Text text
      The field for the text record component.
    • lineWidth

      private final int lineWidth
      The field for the lineWidth record component.
    • textOpacity

      private final DisplayEntity.IntLerper textOpacity
      The field for the textOpacity record component.
    • backgroundColor

      private final DisplayEntity.IntLerper backgroundColor
      The field for the backgroundColor record component.
    • flags

      private final byte flags
      The field for the flags record component.
  • Constructor Details

  • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • text

      public Text text()
      Returns the value of the text record component.
      Returns:
      the value of the text record component
    • lineWidth

      public int lineWidth()
      Returns the value of the lineWidth record component.
      Returns:
      the value of the lineWidth record component
    • textOpacity

      public DisplayEntity.IntLerper textOpacity()
      Returns the value of the textOpacity record component.
      Returns:
      the value of the textOpacity record component
    • backgroundColor

      public DisplayEntity.IntLerper backgroundColor()
      Returns the value of the backgroundColor record component.
      Returns:
      the value of the backgroundColor record component
    • flags

      public byte flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component