Package org.spongepowered.api.scoreboard
Interface Scoreboard.Builder
-
- All Superinterfaces:
AbstractBuilder<Scoreboard>
,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(java.util.List<Objective> objectives)
Sets the list ofObjective
s of theScoreboard
.Scoreboard.Builder
teams(java.util.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(java.util.List<Objective> objectives)
- Parameters:
objectives
- The list ofObjective
s to set- Returns:
- This builder
-
teams
Scoreboard.Builder teams(java.util.List<Team> teams)
- Parameters:
teams
- The list ofTeam
s to set- Returns:
- This builder
-
build
Scoreboard build() throws java.lang.IllegalStateException
Builds an instance of aScoreboard
.- Specified by:
build
in interfaceAbstractBuilder<Scoreboard>
- Specified by:
build
in interfaceBuildable.Builder<Scoreboard>
- Returns:
- A new instance of a
Scoreboard
- Throws:
java.lang.IllegalStateException
- if theScoreboard
is not complete
-
-