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 - official - bfi$k$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionData(Text text, int int2, DisplayEntity.IntLerper intLerper, DisplayEntity.IntLerper intLerper2, byte byte2) 
- 
Method SummaryModifier 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- 
textThe field for thetextrecord component.
- 
lineWidthprivate final int lineWidthThe field for thelineWidthrecord component.
- 
textOpacityThe field for thetextOpacityrecord component.
- 
backgroundColorThe field for thebackgroundColorrecord component.
- 
flagsprivate final byte flagsThe field for theflagsrecord component.
 
- 
- 
Constructor Details- 
Datapublic Data(Text text, int int2, DisplayEntity.IntLerper intLerper, DisplayEntity.IntLerper intLerper2, byte byte2) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
textReturns the value of thetextrecord component.- Returns:
- the value of the textrecord component
 
- 
lineWidthpublic int lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the lineWidthrecord component
 
- 
textOpacityReturns the value of thetextOpacityrecord component.- Returns:
- the value of the textOpacityrecord component
 
- 
backgroundColorReturns the value of thebackgroundColorrecord component.- Returns:
- the value of the backgroundColorrecord component
 
- 
flagspublic byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the flagsrecord component
 
 
-