Record Class Message.Rightclick
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Rightclick
- All Implemented Interfaces:
CooldownConfigSetting, EnableSetting, SoundConfigSetting
- Enclosing class:
Message
public static record Message.Rightclick(Boolean enable, Boolean shouldCheckSneaking, Boolean hideNameWhenInvisible, Range range, Destination destination, Cooldown cooldown, Sound sound)
extends Record
implements EnableSetting, CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRightclick(Boolean enable, Boolean shouldCheckSneaking, Boolean hideNameWhenInvisible, Range range, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aRightclickrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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 thehideNameWhenInvisiblerecord component.range()Returns the value of therangerecord component.Returns the value of theshouldCheckSneakingrecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.withCooldown(Cooldown cooldown) withDestination(Destination destination) withEnable(Boolean enable) withHideNameWhenInvisible(Boolean hideNameWhenInvisible) withShouldCheckSneaking(Boolean shouldCheckSneaking)
-
Constructor Details
-
Rightclick
public Rightclick(Boolean enable, Boolean shouldCheckSneaking, Boolean hideNameWhenInvisible, Range range, Destination destination, Cooldown cooldown, Sound sound) Creates an instance of aRightclickrecord class.- Parameters:
enable- the value for theenablerecord componentshouldCheckSneaking- the value for theshouldCheckSneakingrecord componenthideNameWhenInvisible- the value for thehideNameWhenInvisiblerecord componentrange- the value for therangerecord 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).
-
withShouldCheckSneaking
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withHideNameWhenInvisible
- 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).
-
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.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
shouldCheckSneaking
Returns the value of theshouldCheckSneakingrecord component.- Returns:
- the value of the
shouldCheckSneakingrecord component
-
hideNameWhenInvisible
Returns the value of thehideNameWhenInvisiblerecord component.- Returns:
- the value of the
hideNameWhenInvisiblerecord 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
-
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:
-