Interface DisplaySlot
- 
- All Superinterfaces:
- DefaultedRegistryValue
 
 @CatalogedBy(DisplaySlots.class) public interface DisplaySlot extends DefaultedRegistryValue Represents an area to display an objective.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceDisplaySlot.FactoryUsed to supportDisplaySlot.Factory.findByTeamColor(NamedTextColor)
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.util.Optional<DisplaySlot>findByTeamColor(NamedTextColor color)Finds and retrieves the sidebar display slot for the specifiedNamedTextColorassociated with aTeam, if one exists.java.util.Optional<NamedTextColor>teamColor()Gets theTeamcolor that this objective will display.- 
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValueasDefaultedReference, findKey, key
 
- 
 
- 
- 
- 
Method Detail- 
findByTeamColorstatic java.util.Optional<DisplaySlot> findByTeamColor(NamedTextColor color) Finds and retrieves the sidebar display slot for the specifiedNamedTextColorassociated with aTeam, if one exists.- Parameters:
- color- The- NamedTextColor
- Returns:
- The slot, if one was found
 
 - 
teamColorjava.util.Optional<NamedTextColor> teamColor() Gets theTeamcolor that this objective will display.- Returns:
- The team color or Optional.empty()if not set
 
 
- 
 
-