Record Class Dialogue.NpcProfile
java.lang.Object
java.lang.Record
io.github.kcajpanda.simpledialogue.dialogue.Dialogue.NpcProfile
- Enclosing class:
Dialogue
-
Constructor Summary
ConstructorsConstructorDescriptionNpcProfile(String fancyNpc, String name, String nameColor, String bracketColor) Creates an instance of aNpcProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebracketColorrecord component.final booleanIndicates whether some other object is "equal to" this one.fancyNpc()Returns the value of thefancyNpcrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thenameColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NpcProfile
Creates an instance of aNpcProfilerecord class.- Parameters:
fancyNpc- the value for thefancyNpcrecord componentname- the value for thenamerecord componentnameColor- the value for thenameColorrecord componentbracketColor- the value for thebracketColorrecord 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). -
fancyNpc
Returns the value of thefancyNpcrecord component.- Returns:
- the value of the
fancyNpcrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nameColor
Returns the value of thenameColorrecord component.- Returns:
- the value of the
nameColorrecord component
-
bracketColor
Returns the value of thebracketColorrecord component.- Returns:
- the value of the
bracketColorrecord component
-