Record Class GuideAction.Message
java.lang.Object
java.lang.Record
ke.ric.api.guide.GuideAction.Message
- All Implemented Interfaces:
GuideAction
- Enclosing interface:
GuideAction
public static record GuideAction.Message(net.kyori.adventure.text.Component message)
extends Record
implements GuideAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuideAction
GuideAction.Cancel, GuideAction.Message, GuideAction.Open, GuideAction.Pick, GuideAction.Recipe, GuideAction.Refresh, GuideAction.Select, GuideAction.TutorialModifier and TypeInterfaceDescriptionstatic final recordReturn from a picker with its original state.static final recordstatic final recordOpen a child destination.static final recordOpen a temporary picker without changing navigation history.static final recordOpen a real station recipe using Core history, without retaining an addon callback.static final recordReplace the current view in place.static final recordReturn from a picker with replacement state for its originating view.static final recordLaunch a current lesson, or the named catalogue when lessonId is empty. -
Constructor Summary
ConstructorsConstructorDescriptionMessage(net.kyori.adventure.text.Component message) Creates an instance of aMessagerecord 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Message
public Message(net.kyori.adventure.text.Component message) Creates an instance of aMessagerecord class.- Parameters:
message- the value for themessagerecord 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
-