From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Cryptite Date: Sat, 13 Aug 2022 08:40:03 -0500 Subject: [PATCH] Set multiple Team settings at once diff --git a/src/main/java/org/bukkit/scoreboard/Team.java b/src/main/java/org/bukkit/scoreboard/Team.java index 06a5d3177ca7ab90c3fd9d2053b2ec5e887c7c62..31e2756c134462debfcfa768d2d0ccb988046d72 100644 --- a/src/main/java/org/bukkit/scoreboard/Team.java +++ b/src/main/java/org/bukkit/scoreboard/Team.java @@ -532,6 +532,24 @@ public interface Team { boolean hasEntity(@NotNull org.bukkit.entity.Entity entity) throws IllegalStateException, IllegalArgumentException; // Paper end + //Slice start + /** + * Fully set all team options, combining all 5 options into one packet send, rather than one packet sent + * for every single option change. + * @param displayName New display name + * @param prefix New prefix + * @param suffix New suffix + * @param color new color + * @param options A Paired list of options + * @throws IllegalStateException + */ + void teamOptions(net.kyori.adventure.text.Component displayName, + net.kyori.adventure.text.Component prefix, + net.kyori.adventure.text.Component suffix, + net.kyori.adventure.text.format.NamedTextColor color, + java.util.List> options) throws IllegalStateException; + //Slice end + /** * Represents an option which may be applied to this team. */