Record Class Command.Minesweeper
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Minesweeper
- All Implemented Interfaces:
CommandSetting, CooldownConfigSetting, EnableSetting, SoundConfigSetting
- Enclosing class:
Command
public static record Command.Minesweeper(Boolean enable, Boolean checkDuplicate, Integer maxRow, Integer maxColumn, Integer defaultMine, List<String> aliases, Cooldown cooldown, Sound sound)
extends Record
implements CommandSetting, CooldownConfigSetting, SoundConfigSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.builder()Returns the value of thecheckDuplicaterecord component.cooldown()Returns the value of thecooldownrecord component.Returns the value of thedefaultMinerecord 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 themaxColumnrecord component.maxRow()Returns the value of themaxRowrecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.withAliases(List<String> aliases) withCheckDuplicate(Boolean checkDuplicate) withCooldown(Cooldown cooldown) withDefaultMine(Integer defaultMine) withEnable(Boolean enable) withMaxColumn(Integer maxColumn) withMaxRow(Integer maxRow)
-
Constructor Details
-
Minesweeper
public Minesweeper(Boolean enable, Boolean checkDuplicate, Integer maxRow, Integer maxColumn, Integer defaultMine, List<String> aliases, Cooldown cooldown, Sound sound) Creates an instance of aMinesweeperrecord class.- Parameters:
enable- the value for theenablerecord componentcheckDuplicate- the value for thecheckDuplicaterecord componentmaxRow- the value for themaxRowrecord componentmaxColumn- the value for themaxColumnrecord componentdefaultMine- the value for thedefaultMinerecord componentaliases- the value for thealiasesrecord 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).
-
withCheckDuplicate
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxRow
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMaxColumn
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultMine
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAliases
- 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
-
checkDuplicate
Returns the value of thecheckDuplicaterecord component.- Returns:
- the value of the
checkDuplicaterecord component
-
maxRow
Returns the value of themaxRowrecord component.- Returns:
- the value of the
maxRowrecord component
-
maxColumn
Returns the value of themaxColumnrecord component.- Returns:
- the value of the
maxColumnrecord component
-
defaultMine
Returns the value of thedefaultMinerecord component.- Returns:
- the value of the
defaultMinerecord component
-
aliases
Returns the value of thealiasesrecord component.- Specified by:
aliasesin interfaceCommandSetting- Returns:
- the value of the
aliasesrecord 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:
-