Objective

An objective for a scoreboard, that has optional criteria that must be met, and information about what it's called and how it should be rendered.

Types

Link copied to clipboard
interface Builder

A builder for objectives.

Functions

Link copied to clipboard
abstract fun getOrCreateScore(member: Component): Score

Gets the score for the given member, or creates a new score if the member does not have a score.

Link copied to clipboard
abstract fun getScore(member: Component): Score?

Gets the score for the given member, if the member has a score.

Link copied to clipboard
abstract fun removeScore(member: Component): Boolean

Removes the score for the given member, if the member has a score.

abstract fun removeScore(score: Score): Boolean

Removes the given score, if it exists on this objective.

Properties

Link copied to clipboard
abstract val criterion: Criterion

The criterion that must be met for this objective.

Link copied to clipboard
abstract var displayName: Component

The name that is displayed on the scoreboard to clients.

Link copied to clipboard
abstract val name: String

The name of this objective.

Link copied to clipboard

The setting for how this objective should be displayed on the scoreboard.

Link copied to clipboard
abstract val scoreboard: Scoreboard

The scoreboard that this object is bound to.

Link copied to clipboard
abstract val scores: Collection<Score>

All the scores on this objective.