EndStep

interface EndStep

The end step that ensures the name and the criterion of the objective are set.

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
abstract fun buildAndRegister(): Objective

Builds the objective and adds it to the scoreboard.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun displayName(name: Component): Objective.Builder.EndStep

Sets the display name of the objective to the given name.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun renderType(type: ObjectiveRenderType): Objective.Builder.EndStep

Sets the render type for the objective to the given type.