Skip to content

Commit

Permalink
deprecate old insertList method
Browse files Browse the repository at this point in the history
  • Loading branch information
CubBossa committed Feb 1, 2024
1 parent 3091e95 commit 5d3530b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ default ReturnT insertTag(final @NotNull String key, Tag tag) {

default <T> ReturnT insertObject(final @NotNull String key, T obj) {
return formatted(ObjectTag.resolver(key, obj));

}

@Deprecated(forRemoval = true)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0")
default <E> ReturnT insertList(final @NotNull String key, List<E> elements, Function<E, ComponentLike> renderer) {
return this.insertList(key, elements, ListSection.paged(0, elements.size()), renderer);
}
Expand Down

0 comments on commit 5d3530b

Please sign in to comment.