Record Class Localization.Command.Chatsetting
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Command.Chatsetting
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Command
public static record Localization.Command.Chatsetting(String noPermission, String disabledSelf, String disabledOther, String inventory, Localization.Command.Chatsetting.Checkbox checkbox, Localization.Command.Chatsetting.Menu menu)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionChatsetting(String noPermission, String disabledSelf, String disabledOther, String inventory, Localization.Command.Chatsetting.Checkbox checkbox, Localization.Command.Chatsetting.Menu menu) Creates an instance of aChatsettingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()checkbox()Returns the value of thecheckboxrecord component.Returns the value of thedisabledOtherrecord component.Returns the value of thedisabledSelfrecord 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 theinventoryrecord component.menu()Returns the value of themenurecord component.Returns the value of thenoPermissionrecord component.final StringtoString()Returns a string representation of this record class.withDisabledOther(String disabledOther) withDisabledSelf(String disabledSelf) withInventory(String inventory) withNoPermission(String noPermission)
-
Constructor Details
-
Chatsetting
public Chatsetting(String noPermission, String disabledSelf, String disabledOther, String inventory, Localization.Command.Chatsetting.Checkbox checkbox, Localization.Command.Chatsetting.Menu menu) Creates an instance of aChatsettingrecord class.- Parameters:
noPermission- the value for thenoPermissionrecord componentdisabledSelf- the value for thedisabledSelfrecord componentdisabledOther- the value for thedisabledOtherrecord componentinventory- the value for theinventoryrecord componentcheckbox- the value for thecheckboxrecord componentmenu- the value for themenurecord component
-
-
Method Details
-
builder
-
toBuilder
-
withNoPermission
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisabledSelf
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDisabledOther
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withInventory
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCheckbox
public Localization.Command.Chatsetting withCheckbox(Localization.Command.Chatsetting.Checkbox checkbox) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMenu
- 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). -
noPermission
Returns the value of thenoPermissionrecord component.- Returns:
- the value of the
noPermissionrecord component
-
disabledSelf
Returns the value of thedisabledSelfrecord component.- Returns:
- the value of the
disabledSelfrecord component
-
disabledOther
Returns the value of thedisabledOtherrecord component.- Returns:
- the value of the
disabledOtherrecord component
-
inventory
Returns the value of theinventoryrecord component.- Returns:
- the value of the
inventoryrecord component
-
checkbox
Returns the value of thecheckboxrecord component.- Returns:
- the value of the
checkboxrecord component
-