Package org.spongepowered.api.scoreboard
Interface Scoreboard.Builder
-
- All Superinterfaces:
Buildable.Builder<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 createScoreboard
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Scoreboard
build()
Builds an instance of aScoreboard
.Scoreboard.Builder
objectives(List<Objective> objectives)
Sets the list ofObjective
s of theScoreboard
.Scoreboard.Builder
teams(List<Team> teams)
Sets the list ofTeam
s of theScoreboard
.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
-
-
-
Method Detail
-
objectives
Scoreboard.Builder objectives(List<Objective> objectives)
- Parameters:
objectives
- The list ofObjective
s to set- Returns:
- This builder
-
teams
Scoreboard.Builder teams(List<Team> teams)
- Parameters:
teams
- The list ofTeam
s to set- Returns:
- This builder
-
build
Scoreboard build() throws IllegalStateException
Builds an instance of aScoreboard
.- Specified by:
build
in interfaceBuildable.Builder<Scoreboard>
- Returns:
- A new instance of a
Scoreboard
- Throws:
IllegalStateException
- if theScoreboard
is not complete
-
-