Record Class ChatMedia
java.lang.Object
java.lang.Record
com.thewinterframework.configurate.feedback.media.impl.ChatMedia
- All Implemented Interfaces:
FeedbackMedia
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
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.messages()Returns the value of themessagesrecord component.List<net.kyori.adventure.text.Component> messages(net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) voidsendMedia(net.kyori.adventure.audience.Audience audience, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends the media to the specifiedAudience.final StringtoString()Returns a string representation of this record class.type()Gets the type of media.
-
Constructor Details
-
ChatMedia
-
ChatMedia
Creates an instance of aChatMediarecord class.- Parameters:
messages- the value for themessagesrecord component
-
-
Method Details
-
sendMedia
public void sendMedia(net.kyori.adventure.audience.Audience audience, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Description copied from interface:FeedbackMediaSends the media to the specifiedAudience.- Specified by:
sendMediain interfaceFeedbackMedia- Parameters:
audience- the audience to send the media toresolvers- the tag resolvers to use
-
messages
public List<net.kyori.adventure.text.Component> messages(net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) -
type
Description copied from interface:FeedbackMediaGets the type of media.- Specified by:
typein interfaceFeedbackMedia- Returns:
- the type of media
-
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). -
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-