Package org.spongepowered.api.scoreboard
Interface Scoreboard.Builder
- All Superinterfaces:
AbstractBuilder<Scoreboard>
,Builder<Scoreboard,
,Scoreboard.Builder> CopyableBuilder<Scoreboard,
,Scoreboard.Builder> ResettableBuilder<Scoreboard,
Scoreboard.Builder>
- Enclosing interface:
Scoreboard
public static interface Scoreboard.Builder
extends Builder<Scoreboard,Scoreboard.Builder>, CopyableBuilder<Scoreboard,Scoreboard.Builder>
Represents a builder to create
Scoreboard
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds an instance of aScoreboard
.objectives
(List<Objective> objectives) Sets the list ofObjective
s of theScoreboard
.Sets the list ofTeam
s of theScoreboard
.Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
objectives
- Parameters:
objectives
- The list ofObjective
s to set- Returns:
- This builder
-
teams
- Parameters:
teams
- The list ofTeam
s to set- Returns:
- This builder
-
build
Builds an instance of aScoreboard
.- Specified by:
build
in interfaceAbstractBuilder<Scoreboard>
- Returns:
- A new instance of a
Scoreboard
- Throws:
IllegalStateException
- if theScoreboard
is not complete
-