From d194acfa0d1647ac614e89c1b54554c0a8629fd1 Mon Sep 17 00:00:00 2001 From: Jake Potrebic <jake.m.potrebic@gmail.com> Date: Sat, 23 Apr 2022 07:40:37 -0700 Subject: [PATCH] Add missing javadoc deprecation msgs for PlayerProfile (#7688) --- patches/api/Player.setPlayerProfile-API.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/patches/api/Player.setPlayerProfile-API.patch b/patches/api/Player.setPlayerProfile-API.patch index bf7fae788a..edb724d00e 100644 --- a/patches/api/Player.setPlayerProfile-API.patch +++ b/patches/api/Player.setPlayerProfile-API.patch @@ -10,7 +10,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -0,0 +0,0 @@ public final class Bukkit { + * @return the new PlayerProfile + * @throws IllegalArgumentException if both the unique id is * <code>null</code> and the name is <code>null</code> or blank ++ * @deprecated use {@link #createProfile(UUID, String)} */ @NotNull + @Deprecated // Paper @@ -18,7 +21,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return server.createPlayerProfile(uniqueId, name); } @@ -0,0 +0,0 @@ public final class Bukkit { + * @param uniqueId the unique id + * @return the new PlayerProfile * @throws IllegalArgumentException if the unique id is <code>null</code> ++ * @deprecated use {@link #createProfile(UUID)} */ @NotNull + @Deprecated // Paper @@ -26,7 +32,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 return server.createPlayerProfile(uniqueId); } @@ -0,0 +0,0 @@ public final class Bukkit { + * @return the new PlayerProfile + * @throws IllegalArgumentException if the name is <code>null</code> or * blank ++ * @deprecated use {@link #createProfile(String)} */ @NotNull + @Deprecated // Paper @@ -38,7 +47,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @return the new PlayerProfile + * @throws IllegalArgumentException if both the unique id is * <code>null</code> and the name is <code>null</code> or blank ++ * @deprecated use {@link #createProfile(UUID, String)} */ @NotNull + @Deprecated // Paper @@ -46,7 +58,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 /** @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @param uniqueId the unique id + * @return the new PlayerProfile * @throws IllegalArgumentException if the unique id is <code>null</code> ++ * @deprecated use {@link #createProfile(UUID)} */ @NotNull + @Deprecated // Paper @@ -54,7 +69,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 /** @@ -0,0 +0,0 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi + * @return the new PlayerProfile + * @throws IllegalArgumentException if the name is <code>null</code> or * blank ++ * @deprecated use {@link #createProfile(String)} */ @NotNull + @Deprecated