Record Class Dialogue.DialogueNode
java.lang.Object
java.lang.Record
io.github.kcajpanda.simpledialogue.dialogue.Dialogue.DialogueNode
- Enclosing class:
Dialogue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommands()Returns the value of thecommandsrecord component.booleanend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.left()Returns the value of theleftrecord component.leftText()Returns the value of theleftTextrecord component.lines()Returns the value of thelinesrecord component.next()Returns the value of thenextrecord component.Returns the value of theplayerCommandsrecord component.right()Returns the value of therightrecord component.Returns the value of therightTextrecord component.speaker()Returns the value of thespeakerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialogueNode
public DialogueNode(String id, String speaker, List<String> lines, String left, String right, String leftText, String rightText, String next, List<String> commands, List<String> playerCommands, boolean end) Creates an instance of aDialogueNoderecord class.- Parameters:
id- the value for theidrecord componentspeaker- the value for thespeakerrecord componentlines- the value for thelinesrecord componentleft- the value for theleftrecord componentright- the value for therightrecord componentleftText- the value for theleftTextrecord componentrightText- the value for therightTextrecord componentnext- the value for thenextrecord componentcommands- the value for thecommandsrecord componentplayerCommands- the value for theplayerCommandsrecord componentend- the value for theendrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
speaker
Returns the value of thespeakerrecord component.- Returns:
- the value of the
speakerrecord component
-
lines
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
leftText
Returns the value of theleftTextrecord component.- Returns:
- the value of the
leftTextrecord component
-
rightText
Returns the value of therightTextrecord component.- Returns:
- the value of the
rightTextrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
commands
-
playerCommands
-
end
public boolean end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-