Record Class Message.Vanilla.VanillaMessage
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Vanilla.VanillaMessage
- All Implemented Interfaces:
SoundConfigSetting
- Enclosing class:
Message.Vanilla
public static record Message.Vanilla.VanillaMessage(String name, Boolean multiMessage, Range range, Destination destination, Sound sound, List<String> translationKeys)
extends Record
implements SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVanillaMessage(String name, Boolean multiMessage, Range range, Destination destination, Sound sound, List<String> translationKeys) Creates an instance of aVanillaMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themultiMessagerecord component.name()Returns the value of thenamerecord component.range()Returns the value of therangerecord component.sound()Returns the value of thesoundrecord component.toJson()final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationKeysrecord component.withDestination(Destination destination) withMultiMessage(Boolean multiMessage) withTranslationKeys(List<String> translationKeys)
-
Constructor Details
-
VanillaMessage
public VanillaMessage(String name, Boolean multiMessage, Range range, Destination destination, Sound sound, List<String> translationKeys) Creates an instance of aVanillaMessagerecord class.- Parameters:
name- the value for thenamerecord componentmultiMessage- the value for themultiMessagerecord componentrange- the value for therangerecord componentdestination- the value for thedestinationrecord componentsound- the value for thesoundrecord componenttranslationKeys- the value for thetranslationKeysrecord component
-
-
Method Details
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
multiMessage
Returns the value of themultiMessagerecord component.- Returns:
- the value of the
multiMessagerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-
translationKeys
-
toJson
-
builder
-
toBuilder
-
withName
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMultiMessage
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRange
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDestination
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTranslationKeys
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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).
-