Package net.minecraft.entity.decoration
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 named net/minecraft/entity/decoration/DisplayEntity$TextDisplayEntity$Data
intermediary net/minecraft/class_8113$class_8123$class_8230
official bsv$l$e
named text
intermediary comp_1334
official a
named lineWidth
intermediary comp_1335
official b
named textOpacity
intermediary comp_1336
official c
named backgroundColor
intermediary comp_1337
official d
named flags
intermediary comp_1338
official e
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DisplayEntity.IntLerper
The field for thebackgroundColor
record component.private final byte
The field for theflags
record component.private final int
The field for thelineWidth
record component.private final Text
The field for thetext
record component.private final DisplayEntity.IntLerper
The field for thetextOpacity
record component. -
Constructor Summary
ConstructorDescriptionData
(Text text, int int2, DisplayEntity.IntLerper intLerper, DisplayEntity.IntLerper intLerper2, byte byte2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColor
record component.final boolean
Indicates whether some other object is "equal to" this one.byte
flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thelineWidth
record component.text()
Returns the value of thetext
record component.Returns the value of thetextOpacity
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
text
The field for thetext
record component. -
lineWidth
private final int lineWidthThe field for thelineWidth
record component. -
textOpacity
The field for thetextOpacity
record component. -
backgroundColor
The field for thebackgroundColor
record component. -
flags
private final byte flagsThe field for theflags
record component.
-
-
Constructor Details
-
Data
public Data(Text text, int int2, DisplayEntity.IntLerper intLerper, DisplayEntity.IntLerper intLerper2, byte byte2)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
text
Returns the value of thetext
record component.- Returns:
- the value of the
text
record component
-
lineWidth
public int lineWidth()Returns the value of thelineWidth
record component.- Returns:
- the value of the
lineWidth
record component
-
textOpacity
Returns the value of thetextOpacity
record component.- Returns:
- the value of the
textOpacity
record component
-
backgroundColor
Returns the value of thebackgroundColor
record component.- Returns:
- the value of the
backgroundColor
record component
-
flags
public byte flags()Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-