Record Class Message.Scoreboard.Objective
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Scoreboard.Objective
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Message.Scoreboard
public static record Message.Scoreboard.Objective(Boolean enable, Message.Scoreboard.Objective.Belowname belowname, Message.Scoreboard.Objective.Tabname tabname)
extends Record
implements EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionObjective(Boolean enable, Message.Scoreboard.Objective.Belowname belowname, Message.Scoreboard.Objective.Tabname tabname) Creates an instance of aObjectiverecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebelownamerecord component.builder()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.tabname()Returns the value of thetabnamerecord component.final StringtoString()Returns a string representation of this record class.withEnable(Boolean enable)
-
Constructor Details
-
Objective
public Objective(Boolean enable, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/scoreboard/objective/belowname") Message.Scoreboard.Objective.Belowname belowname, @JsonPropertyDescription("https://flectone.net/pulse/docs/message/scoreboard/objective/tabname") Message.Scoreboard.Objective.Tabname tabname) Creates an instance of aObjectiverecord class.- Parameters:
enable- the value for theenablerecord componentbelowname- the value for thebelownamerecord componenttabname- the value for thetabnamerecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBelowname
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTabname
- 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
-
belowname
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/scoreboard/objective/belowname") public Message.Scoreboard.Objective.Belowname belowname()Returns the value of thebelownamerecord component.- Returns:
- the value of the
belownamerecord component
-
tabname
@JsonPropertyDescription("https://flectone.net/pulse/docs/message/scoreboard/objective/tabname") public Message.Scoreboard.Objective.Tabname tabname()Returns the value of thetabnamerecord component.- Returns:
- the value of the
tabnamerecord component
-