mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Fix some team color docs and added hasColor (#7602)
This commit is contained in:
@@ -4115,13 +4115,23 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ void suffix(@Nullable net.kyori.adventure.text.Component suffix) throws IllegalStateException, IllegalArgumentException;
|
||||
+
|
||||
+ /**
|
||||
+ * Checks if the team has a color specified
|
||||
+ *
|
||||
+ * @return true if it has a <b>color</b>
|
||||
+ * @throws IllegalStateException if this team has been unregistered
|
||||
+ */
|
||||
+ boolean hasColor();
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the color of the team.
|
||||
+ * <br>
|
||||
+ * This only sets the team outline, other occurrences of colors such as in
|
||||
+ * names are handled by prefixes / suffixes.
|
||||
+ *
|
||||
+ * @return team color, defaults to {@link ChatColor#RESET}
|
||||
+ * @return team color
|
||||
+ * @throws IllegalStateException if this team has been unregistered
|
||||
+ * @throws IllegalStateException if the team doesn't have a color
|
||||
+ * @see #hasColor()
|
||||
+ */
|
||||
+ @NotNull net.kyori.adventure.text.format.TextColor color() throws IllegalStateException;
|
||||
+
|
||||
@@ -4131,8 +4141,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * This only sets the team outline, other occurrences of colors such as in
|
||||
+ * names are handled by prefixes / suffixes.
|
||||
+ *
|
||||
+ * @param color new color, must be non-null. Use {@link ChatColor#RESET} for
|
||||
+ * no color
|
||||
+ * @param color new color, null for no color
|
||||
+ */
|
||||
+ void color(@Nullable net.kyori.adventure.text.format.NamedTextColor color);
|
||||
+ // Paper end
|
||||
|
Reference in New Issue
Block a user