Interface ScoreComponent.Builder

    • Method Detail

      • name

        @Contract("_ -> this")
        @NotNull
        @NotNull ScoreComponent.Builder name​(@NotNull
                                             @NotNull java.lang.String name)
        Sets the score name.
        Parameters:
        name - the score name
        Returns:
        this builder
        Since:
        4.0.0
      • objective

        @Contract("_ -> this")
        @NotNull
        @NotNull ScoreComponent.Builder objective​(@NotNull
                                                  @NotNull java.lang.String objective)
        Sets the score objective.
        Parameters:
        objective - the score objective
        Returns:
        this builder
        Since:
        4.0.0
      • value

        @Deprecated
        @Contract("_ -> this")
        @NotNull
        @NotNull ScoreComponent.Builder 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:
        this builder
        Since:
        4.0.0