Interface DisplaySlot
- All Superinterfaces:
DefaultedRegistryValue
Represents an area to display an objective.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUsed to supportDisplaySlot.Factory.findByTeamColor(NamedTextColor) -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<DisplaySlot> findByTeamColor(NamedTextColor color) Finds and retrieves the sidebar display slot for the specifiedNamedTextColorassociated with aTeam, if one exists.Gets theTeamcolor 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 specifiedNamedTextColorassociated with aTeam, if one exists.- Parameters:
color- TheNamedTextColor- Returns:
- The slot, if one was found
-
teamColor
Optional<NamedTextColor> teamColor()Gets theTeamcolor that this objective will display.- Returns:
- The team color or
Optional.empty()if not set
-