Interface ScoreComponent

    • Method Detail

      • name

        @NotNull
        @NotNull java.lang.String name()
        Gets the score name.
        Returns:
        the score name
        Since:
        4.0.0
      • name

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

        @NotNull
        @NotNull java.lang.String objective()
        Gets the objective name.
        Returns:
        the objective name
        Since:
        4.0.0
      • objective

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

        @Deprecated
        @Nullable
        @Nullable java.lang.String value()
        Deprecated.
        since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.
        Gets the value.
        Returns:
        the value
        Since:
        4.0.0
      • value

        @Deprecated
        @Contract(pure=true)
        @NotNull
        @NotNull ScoreComponent value​(@Nullable
                                      @Nullable java.lang.String value)
        Deprecated.
        since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.
        Sets the value.
        Parameters:
        value - the value
        Returns:
        a score component
        Since:
        4.0.0
      • examinableProperties

        @NotNull
        default @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
        Specified by:
        examinableProperties in interface Component
        Specified by:
        examinableProperties in interface net.kyori.examination.Examinable