Record Class Message.Afk
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Afk
- All Implemented Interfaces:
EnableSetting, SoundConfigSetting
- Enclosing class:
Message
public static record Message.Afk(Boolean enable, Boolean trackPlaytime, Range range, Long delay, Double radius, List<String> ignore, Destination destination, Ticker ticker, Sound sound)
extends Record
implements EnableSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Message.Afk.AfkBuilderbuilder()delay()Returns the value of thedelayrecord 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.ignore()Returns the value of theignorerecord component.radius()Returns the value of theradiusrecord component.range()Returns the value of therangerecord component.sound()Returns the value of thesoundrecord component.ticker()Returns the value of thetickerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrackPlaytimerecord component.withDestination(Destination destination) withEnable(Boolean enable) withIgnore(List<String> ignore) withRadius(Double radius) withTicker(Ticker ticker) withTrackPlaytime(Boolean trackPlaytime)
-
Constructor Details
-
Afk
public Afk(Boolean enable, Boolean trackPlaytime, Range range, Long delay, Double radius, List<String> ignore, Destination destination, Ticker ticker, Sound sound) Creates an instance of aAfkrecord class.- Parameters:
enable- the value for theenablerecord componenttrackPlaytime- the value for thetrackPlaytimerecord componentrange- the value for therangerecord componentdelay- the value for thedelayrecord componentradius- the value for theradiusrecord componentignore- the value for theignorerecord componentdestination- the value for thedestinationrecord componentticker- the value for thetickerrecord 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).
-
withTrackPlaytime
- 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).
-
withDelay
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRadius
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withIgnore
- 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).
-
withTicker
- 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.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
trackPlaytime
Returns the value of thetrackPlaytimerecord component.- Returns:
- the value of the
trackPlaytimerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
radius
Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
ignore
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
ticker
Returns the value of thetickerrecord component.- Returns:
- the value of the
tickerrecord component
-
sound
Returns the value of thesoundrecord component.- Specified by:
soundin interfaceSoundConfigSetting- Returns:
- the value of the
soundrecord component - See Also:
-