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$Dataintermediary net/minecraft/class_8113$class_8123$class_8230official bsq$l$enamed textintermediary comp_1334official anamed lineWidthintermediary comp_1335official bnamed textOpacityintermediary comp_1336official cnamed backgroundColorintermediary comp_1337official dnamed flagsintermediary comp_1338official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DisplayEntity.IntLerperThe field for thebackgroundColorrecord component.private final byteThe field for theflagsrecord component.private final intThe field for thelineWidthrecord component.private final TextThe field for thetextrecord component.private final DisplayEntity.IntLerperThe field for thetextOpacityrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionData(Text text, int int2, DisplayEntity.IntLerper intLerper, DisplayEntity.IntLerper intLerper2, byte byte2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundColorrecord component.final booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineWidthrecord component.text()Returns the value of thetextrecord component.Returns the value of thetextOpacityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
text
The field for thetextrecord component. -
lineWidth
private final int lineWidthThe field for thelineWidthrecord component. -
textOpacity
The field for thetextOpacityrecord component. -
backgroundColor
The field for thebackgroundColorrecord component. -
flags
private final byte flagsThe field for theflagsrecord 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 thetextrecord component.- Returns:
- the value of the
textrecord component
-
lineWidth
public int lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-
textOpacity
Returns the value of thetextOpacityrecord component.- Returns:
- the value of the
textOpacityrecord component
-
backgroundColor
Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-