Interface ScoreComponent

    • Method Detail

      • name

        @NonNull String name()
        Gets the score name.
        Returns:
        the score name
        Since:
        4.0.0
      • name

        @Contract(pure=true)
        @NonNull ScoreComponent name​(@NonNull String name)
        Sets the score name.
        Parameters:
        name - the score name
        Returns:
        a score component
        Since:
        4.0.0
      • objective

        @NonNull String objective()
        Gets the objective name.
        Returns:
        the objective name
        Since:
        4.0.0
      • objective

        @Contract(pure=true)
        @NonNull ScoreComponent objective​(@NonNull String objective)
        Sets the score objective.
        Parameters:
        objective - the score objective
        Returns:
        a score component
        Since:
        4.0.0
      • value

        @Nullable String value()
        Gets the value.
        Returns:
        the value
        Since:
        4.0.0
      • value

        @Contract(pure=true)
        @NonNull ScoreComponent value​(@Nullable String value)
        Sets the value.
        Parameters:
        value - the value
        Returns:
        a score component
        Since:
        4.0.0