Record Class Message.Chat.Type
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Chat.Type
- All Implemented Interfaces:
CooldownConfigSetting, SoundConfigSetting
- Enclosing class:
Message.Chat
public static record Message.Chat.Type(Boolean enable, Boolean cancel, Range range, Integer priority, String trigger, Message.Chat.Type.NullReceiver nullReceiver, Destination destination, Cooldown cooldown, Sound sound)
extends Record
implements CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionType(Boolean enable, Boolean cancel, Range range, Integer priority, String trigger, Message.Chat.Type.NullReceiver nullReceiver, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()cancel()Returns the value of thecancelrecord component.cooldown()Returns the value of thecooldownrecord component.Returns the value of thedestinationrecord component.enable()Returns the value of theenablerecord 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 thenullReceiverrecord component.priority()Returns the value of thepriorityrecord component.range()Returns the value of therangerecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.withCancel(Boolean cancel) withCooldown(Cooldown cooldown) withDestination(Destination destination) withEnable(Boolean enable) withNullReceiver(Message.Chat.Type.NullReceiver nullReceiver) withPriority(Integer priority) withTrigger(String trigger)
-
Constructor Details
-
Type
public Type(Boolean enable, Boolean cancel, Range range, Integer priority, String trigger, Message.Chat.Type.NullReceiver nullReceiver, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aTyperecord class.- Parameters:
enable- the value for theenablerecord componentcancel- the value for thecancelrecord componentrange- the value for therangerecord componentpriority- the value for thepriorityrecord componenttrigger- the value for thetriggerrecord componentnullReceiver- the value for thenullReceiverrecord componentdestination- the value for thedestinationrecord componentcooldown- the value for thecooldownrecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCancel
- 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).
-
withPriority
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTrigger
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withNullReceiver
- 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).
-
withCooldown
- 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).
-
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). -
enable
Returns the value of theenablerecord component.- Returns:
- the value of the
enablerecord component
-
cancel
Returns the value of thecancelrecord component.- Returns:
- the value of the
cancelrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
priority
Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
nullReceiver
Returns the value of thenullReceiverrecord component.- Returns:
- the value of the
nullReceiverrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
cooldown
Returns the value of thecooldownrecord component.- Specified by:
cooldownin interfaceCooldownConfigSetting- Returns:
- the value of the
cooldownrecord component - See Also:
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-