From afa37505c5a10aab3781986bdc15f87f8efe29f6 Mon Sep 17 00:00:00 2001
From: Jonas Konrad
* ComponentBuilder simplifies creating basic messages by allowing the use of a
* chainable builder.
- *
* new ComponentBuilder("Hello ").color(ChatColor.RED). * append("World").color(ChatColor.BLUE). append("!").bold(true).create(); *- * + *
* All methods (excluding {@link #append(String)} and {@link #create()} work on * the last part appended to the builder, so in the example above "Hello " would * be {@link net.md_5.bungee.api.ChatColor#RED} and "World" would be * {@link net.md_5.bungee.api.ChatColor#BLUE} but "!" would be bold and * {@link net.md_5.bungee.api.ChatColor#BLUE} because append copies the previous * part's formatting + *
*/ public class ComponentBuilder { diff --git a/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java b/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java index 900c4f36..bb162918 100644 --- a/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java +++ b/api/src/main/java/net/md_5/bungee/api/chat/TranslatableComponent.java @@ -34,7 +34,7 @@ public class TranslatableComponent extends BaseComponent /** * Creates a translatable component with the passed substitutions * - * @see #setTranslate(String) + * @see #translate * @see #setWith(java.util.List) * @param translate the translation key * @param with the {@link java.lang.String}s and diff --git a/api/src/main/java/net/md_5/bungee/api/connection/PendingConnection.java b/api/src/main/java/net/md_5/bungee/api/connection/PendingConnection.java index 203de9cf..98456e4b 100644 --- a/api/src/main/java/net/md_5/bungee/api/connection/PendingConnection.java +++ b/api/src/main/java/net/md_5/bungee/api/connection/PendingConnection.java @@ -63,8 +63,6 @@ public interface PendingConnection extends Connection /** * Set this connection's online mode. - * - * @param onlineMode */ void setOnlineMode(boolean onlineMode); } diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index e3d2c1cf..413e5cff 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -397,8 +397,6 @@ public class PluginManager /** * Unregister all of a Plugin's listener. - * - * @param plugin */ public void unregisterListeners(Plugin plugin) { diff --git a/api/src/main/java/net/md_5/bungee/api/tab/TabListHandler.java b/api/src/main/java/net/md_5/bungee/api/tab/TabListHandler.java index bcc159ec..4b147a4a 100644 --- a/api/src/main/java/net/md_5/bungee/api/tab/TabListHandler.java +++ b/api/src/main/java/net/md_5/bungee/api/tab/TabListHandler.java @@ -25,8 +25,6 @@ public interface TabListHandler /** * Called when a player first connects to the proxy. - * - * @param player the connecting player */ void onServerChange(); @@ -34,22 +32,18 @@ public interface TabListHandler * Called when a players ping changes. The new ping will have not updated in * the player instance until this method returns. * - * @param player the player who's ping changed * @param ping the player's new ping. */ void onPingChange(int ping); /** * Called when a player disconnects. - * - * @param player the disconnected player */ void onDisconnect(); /** * Called when a list update packet is sent from server to client. * - * @param player receiving this packet * @param name the player which this packet is relevant to * @param online whether the subject player is online * @param ping ping of the subject player diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java index 34dbaa46..792302c6 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/Team.java @@ -31,8 +31,6 @@ public class Team extends DefinedPacket /** * Packet to destroy a team. - * - * @param name */ public Team(String name) {