Class NoopScoreboardObjective
java.lang.Object
net.megavex.scoreboardlibrary.api.noop.NoopScoreboardObjective
- All Implemented Interfaces:
ScoreboardObjective
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ScoreFormatvoiddefaultScoreFormat(@Nullable ScoreFormat defaultScoreFormat) Sets the default score format of this objective.@NotNull ScoreboardObjectiveremoveScore(@NotNull String entry) Removes a score associated with an entry.@NotNull ObjectiveRenderType@NotNull ScoreboardObjectiverenderType(@NotNull ObjectiveRenderType renderType) Sets the render type of the objective.@NotNull ScoreboardObjectivescore(@NotNull String entry, ObjectiveScore score) Updates the score of an entry.@Nullable ObjectiveScoreGet the score for an entry, or null if the entry has no score.@NotNull net.kyori.adventure.text.Componentvalue()@NotNull ScoreboardObjectivevalue(@NotNull net.kyori.adventure.text.ComponentLike value) Sets the value (display name) of the objective.
-
Constructor Details
-
NoopScoreboardObjective
public NoopScoreboardObjective()
-
-
Method Details
-
value
@NotNull public @NotNull net.kyori.adventure.text.Component value()- Specified by:
valuein interfaceScoreboardObjective- Returns:
- the value (display name) of the objective, defaults to
Component.empty()
-
value
@NotNull public @NotNull ScoreboardObjective value(@NotNull @NotNull net.kyori.adventure.text.ComponentLike value) Description copied from interface:ScoreboardObjectiveSets the value (display name) of the objective.- Specified by:
valuein interfaceScoreboardObjective- Parameters:
value- new value
-
renderType
- Specified by:
renderTypein interfaceScoreboardObjective- Returns:
- the render type of the objective, defaults to
ObjectiveRenderType.INTEGER
-
renderType
@NotNull public @NotNull ScoreboardObjective renderType(@NotNull @NotNull ObjectiveRenderType renderType) Description copied from interface:ScoreboardObjectiveSets the render type of the objective.- Specified by:
renderTypein interfaceScoreboardObjective- Parameters:
renderType- new render type
-
defaultScoreFormat
- Specified by:
defaultScoreFormatin interfaceScoreboardObjective- Returns:
- the default score format for all scores in this objective, defaults to null
-
defaultScoreFormat
Description copied from interface:ScoreboardObjectiveSets the default score format of this objective.- Specified by:
defaultScoreFormatin interfaceScoreboardObjective- Parameters:
defaultScoreFormat- new default score format- See Also:
-
scoreInfo
Description copied from interface:ScoreboardObjectiveGet the score for an entry, or null if the entry has no score.- Specified by:
scoreInfoin interfaceScoreboardObjective- Parameters:
entry- entry to get score of- Returns:
- the score value, or null if it doesn't exist for the entry
-
score
@NotNull public @NotNull ScoreboardObjective score(@NotNull @NotNull String entry, ObjectiveScore score) Description copied from interface:ScoreboardObjectiveUpdates the score of an entry.- Specified by:
scorein interfaceScoreboardObjective- Parameters:
entry- entry to update score ofscore- score
-
removeScore
Description copied from interface:ScoreboardObjectiveRemoves a score associated with an entry.- Specified by:
removeScorein interfaceScoreboardObjective- Parameters:
entry- entry to remove score of
-