Record Class ChatType.ChatTypeDecorationImpl
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.chat.ChatType.ChatTypeDecorationImpl
- All Implemented Interfaces:
ChatTypeDecoration
- Enclosing class:
ChatType
public static record ChatType.ChatTypeDecorationImpl(String translationKey, List<ChatTypeDecoration.Parameter> parameters, com.viaversion.nbt.mini.MNBT style)
extends Record
implements ChatTypeDecoration
-
Nested Class Summary
Nested classes/interfaces inherited from interface ChatTypeDecoration
ChatTypeDecoration.Parameter -
Constructor Summary
ConstructorsConstructorDescriptionChatTypeDecorationImpl(String translationKey, List<ChatTypeDecoration.Parameter> parameters, com.viaversion.nbt.mini.MNBT style) Creates an instance of aChatTypeDecorationImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparametersrecord component.com.viaversion.nbt.mini.MNBTstyle()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationKeyrecord component.
-
Constructor Details
-
ChatTypeDecorationImpl
public ChatTypeDecorationImpl(String translationKey, List<ChatTypeDecoration.Parameter> parameters, com.viaversion.nbt.mini.MNBT style) Creates an instance of aChatTypeDecorationImplrecord class.- Parameters:
translationKey- the value for thetranslationKeyrecord componentparameters- the value for theparametersrecord componentstyle- the value for thestylerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
translationKey
Returns the value of thetranslationKeyrecord component.- Specified by:
translationKeyin interfaceChatTypeDecoration- Returns:
- the value of the
translationKeyrecord component
-
parameters
Returns the value of theparametersrecord component.- Specified by:
parametersin interfaceChatTypeDecoration- Returns:
- the value of the
parametersrecord component
-
style
public com.viaversion.nbt.mini.MNBT style()Returns the value of thestylerecord component.- Specified by:
stylein interfaceChatTypeDecoration- Returns:
- the value of the
stylerecord component
-