Record Class TickerMessage
java.lang.Object
java.lang.Record
dev.despical.tntrun.game.messages.TickerMessage
public record TickerMessage(net.kyori.adventure.text.Component message, net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTickerMessage(net.kyori.adventure.text.Component message, net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle) Creates an instance of aTickerMessagerecord 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.net.kyori.adventure.text.Componentmessage()Returns the value of themessagerecord component.net.kyori.adventure.text.Componentsubtitle()Returns the value of thesubtitlerecord component.net.kyori.adventure.text.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TickerMessage
public TickerMessage(net.kyori.adventure.text.Component message, net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle) Creates an instance of aTickerMessagerecord class.- Parameters:
message- the value for themessagerecord componenttitle- the value for thetitlerecord componentsubtitle- the value for thesubtitlerecord 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). -
message
public net.kyori.adventure.text.Component message()Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
title
public net.kyori.adventure.text.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
subtitle
public net.kyori.adventure.text.Component subtitle()Returns the value of thesubtitlerecord component.- Returns:
- the value of the
subtitlerecord component
-