Interface DisplaySlot
- All Superinterfaces:
DefaultedRegistryValue
Represents an area to display an objective.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Used to supportDisplaySlot.Factory.findByTeamColor(NamedTextColor)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<DisplaySlot>
findByTeamColor
(NamedTextColor color) Finds and retrieves the sidebar display slot for the specifiedNamedTextColor
associated with aTeam
, if one exists.Gets theTeam
color that this objective will display.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
Method Details
-
findByTeamColor
Finds and retrieves the sidebar display slot for the specifiedNamedTextColor
associated with aTeam
, if one exists.- Parameters:
color
- TheNamedTextColor
- Returns:
- The slot, if one was found
-
teamColor
Optional<NamedTextColor> teamColor()Gets theTeam
color that this objective will display.- Returns:
- The team color or
Optional.empty()
if not set
-