From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Cryptite Date: Thu, 7 Apr 2022 16:35:36 -0500 Subject: [PATCH] Set multiple Team settings with a single packet diff --git a/src/main/java/org/bukkit/scoreboard/Team.java b/src/main/java/org/bukkit/scoreboard/Team.java index 04c8cc55a2fe19c888aba842775cc66648dddb0c..50ab68f3d3f0b1ac16ca75a962bdd68cab7e2e50 100644 --- a/src/main/java/org/bukkit/scoreboard/Team.java +++ b/src/main/java/org/bukkit/scoreboard/Team.java @@ -525,6 +525,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.TextColor color, + java.util.List> options) throws IllegalStateException; + //Slice end + /** * Represents an option which may be applied to this team. */