Record Class Localization.Message.Scoreboard
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Localization.Message.Scoreboard
- All Implemented Interfaces:
LocalizationSetting
- Enclosing class:
Localization.Message
public static record Localization.Message.Scoreboard(String prefix, String suffix, Localization.Message.Scoreboard.Objective objective)
extends Record
implements LocalizationSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Constructor Summary
ConstructorsConstructorDescriptionScoreboard(String prefix, String suffix, Localization.Message.Scoreboard.Objective objective) Creates an instance of aScoreboardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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 theobjectiverecord component.prefix()Returns the value of theprefixrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.withPrefix(String prefix) withSuffix(String suffix)
-
Constructor Details
-
Scoreboard
public Scoreboard(String prefix, String suffix, @JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective") Localization.Message.Scoreboard.Objective objective) Creates an instance of aScoreboardrecord class.- Parameters:
prefix- the value for theprefixrecord componentsuffix- the value for thesuffixrecord componentobjective- the value for theobjectiverecord component
-
-
Method Details
-
builder
-
toBuilder
-
withPrefix
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSuffix
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withObjective
public Localization.Message.Scoreboard withObjective(Localization.Message.Scoreboard.Objective objective) - 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). -
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-
objective
@JsonPropertyDescription(" https://flectone.net/pulse/docs/message/scoreboard/objective") public Localization.Message.Scoreboard.Objective objective()Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-