Record Class Command.Chatsetting.Menu
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Command.Chatsetting.Menu
- Enclosing class:
Command.Chatsetting
public static record Command.Chatsetting.Menu(String material, Command.Chatsetting.Menu.Chat chat, Command.Chatsetting.Menu.Color see, Command.Chatsetting.Menu.Color out)
extends Record
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionMenu(String material, Command.Chatsetting.Menu.Chat chat, Command.Chatsetting.Menu.Color see, Command.Chatsetting.Menu.Color out) Creates an instance of aMenurecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()chat()Returns the value of thechatrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.material()Returns the value of thematerialrecord component.out()Returns the value of theoutrecord component.see()Returns the value of theseerecord component.final StringtoString()Returns a string representation of this record class.withMaterial(String material)
-
Constructor Details
-
Menu
public Menu(String material, Command.Chatsetting.Menu.Chat chat, Command.Chatsetting.Menu.Color see, Command.Chatsetting.Menu.Color out) Creates an instance of aMenurecord class.- Parameters:
material- the value for thematerialrecord componentchat- the value for thechatrecord componentsee- the value for theseerecord componentout- the value for theoutrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withMaterial
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withChat
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSee
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withOut
- 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). -
material
Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
see
Returns the value of theseerecord component.- Returns:
- the value of the
seerecord component
-
out
Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord component
-