Interface DisplaySlot
- All Superinterfaces:
DefaultedRegistryValue<DisplaySlot>, StringRepresentable
@CatalogedBy(DisplaySlots.class)
public interface DisplaySlot
extends DefaultedRegistryValue<DisplaySlot>, StringRepresentable
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 DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface StringRepresentable
serializationString
-
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
-