Record Class TitleMedia
java.lang.Object
java.lang.Record
com.thewinterframework.configurate.feedback.media.impl.TitleMedia
- 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.fadeIn()Returns the value of thefadeInrecord component.fadeOut()Returns the value of thefadeOutrecord component.final inthashCode()Returns a hash code value for this object.voidsendMedia(net.kyori.adventure.audience.Audience audience, net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sends the media to the specifiedAudience.stay()Returns the value of thestayrecord component.@Nullable Stringsubtitle()Returns the value of thesubtitlerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Gets the type of media.
-
Constructor Details
-
TitleMedia
public TitleMedia(String title, @Nullable @Nullable String subtitle, Duration fadeIn, Duration stay, Duration fadeOut) Creates an instance of aTitleMediarecord class.- Parameters:
title- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord componentfadeIn- the value for thefadeInrecord componentstay- the value for thestayrecord componentfadeOut- the value for thefadeOutrecord 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
-
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-
fadeIn
Returns the value of thefadeInrecord component.- Returns:
- the value of the
fadeInrecord component
-
stay
Returns the value of thestayrecord component.- Returns:
- the value of the
stayrecord component
-
fadeOut
Returns the value of thefadeOutrecord component.- Returns:
- the value of the
fadeOutrecord component
-