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, org.cloudburstmc.nbt.NbtMap style)
extends Record
implements ChatTypeDecoration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.geysermc.mcprotocollib.protocol.data.game.chat.ChatTypeDecoration
ChatTypeDecoration.Parameter -
Constructor Summary
ConstructorsConstructorDescriptionChatTypeDecorationImpl(String translationKey, List<ChatTypeDecoration.Parameter> parameters, org.cloudburstmc.nbt.NbtMap 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.org.cloudburstmc.nbt.NbtMapstyle()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, org.cloudburstmc.nbt.NbtMap 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
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. 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 org.cloudburstmc.nbt.NbtMap style()Returns the value of thestylerecord component.- Specified by:
stylein interfaceChatTypeDecoration- Returns:
- the value of the
stylerecord component
-