13
0
geforkt von Mirrors/Velocity

Fix a few javadoc-related problems

Dieser Commit ist enthalten in:
Riley Park 2020-10-15 08:24:41 -07:00
Ursprung 6e00dbe2b7
Commit a76c01df4b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: D831AF236C834E45
4 geänderte Dateien mit 16 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -3,6 +3,7 @@ package com.velocitypowered.api.command;
import com.velocitypowered.api.permission.PermissionSubject; import com.velocitypowered.api.permission.PermissionSubject;
import net.kyori.adventure.audience.Audience; import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.audience.MessageType; import net.kyori.adventure.audience.MessageType;
import net.kyori.adventure.identity.Identified;
import net.kyori.adventure.identity.Identity; import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.legacytext3.LegacyText3ComponentSerializer; import net.kyori.adventure.text.serializer.legacytext3.LegacyText3ComponentSerializer;
@ -17,7 +18,8 @@ public interface CommandSource extends Audience, PermissionSubject {
* Sends the specified {@code component} to the invoker. * Sends the specified {@code component} to the invoker.
* *
* @param component the text component to send * @param component the text component to send
* @deprecated Use {@link #sendMessage(Component)} instead * @deprecated Use {@link #sendMessage(Identified, Component)}
* or {@link #sendMessage(Identity, Component)} instead
*/ */
@Deprecated @Deprecated
void sendMessage(net.kyori.text.Component component); void sendMessage(net.kyori.text.Component component);

Datei anzeigen

@ -15,6 +15,7 @@ import java.util.List;
import java.util.Optional; import java.util.Optional;
import java.util.UUID; import java.util.UUID;
import net.kyori.adventure.identity.Identified; import net.kyori.adventure.identity.Identified;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
/** /**
@ -77,7 +78,8 @@ public interface Player extends CommandSource, Identified, InboundConnection,
* Sends a chat message to the player's client. * Sends a chat message to the player's client.
* *
* @param component the chat message to send * @param component the chat message to send
* @deprecated Use {@link #sendMessage(net.kyori.adventure.text.Component)} * @deprecated Use {@link #sendMessage(Identified, Component)}
* or {@link #sendMessage(Identity, Component)} instead
*/ */
@Deprecated @Deprecated
@Override @Override
@ -90,8 +92,9 @@ public interface Player extends CommandSource, Identified, InboundConnection,
* *
* @param component the chat message to send * @param component the chat message to send
* @param position the position for the message * @param position the position for the message
* @deprecated Use @deprecated Use {@link #sendMessage(net.kyori.adventure.text.Component)} or * @deprecated Use @deprecated Use {@link #sendMessage(Identified, Component)} or
* {@link #sendActionBar(net.kyori.adventure.text.Component)} * {@link #sendMessage(Identity, Component)} for chat messages, or
* {@link #sendActionBar(net.kyori.adventure.text.Component)} for action bar messages
*/ */
@Deprecated @Deprecated
void sendMessage(net.kyori.text.Component component, MessagePosition position); void sendMessage(net.kyori.text.Component component, MessagePosition position);

Datei anzeigen

@ -18,6 +18,9 @@ import java.util.Collection;
import java.util.Optional; import java.util.Optional;
import java.util.UUID; import java.util.UUID;
import net.kyori.adventure.audience.Audience; import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.identity.Identified;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.text.Component;
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.NonNull;
/** /**
@ -26,7 +29,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
public interface ProxyServer extends Audience { public interface ProxyServer extends Audience {
/** /**
* Shuts down the proxy, kicking players with the specified {@param reason}. * Shuts down the proxy, kicking players with the specified {@code reason}.
* *
* @param reason message to kick online players with * @param reason message to kick online players with
*/ */
@ -58,7 +61,8 @@ public interface ProxyServer extends Audience {
* Broadcasts a message to all players currently online. * Broadcasts a message to all players currently online.
* *
* @param component the message to send * @param component the message to send
* @deprecated Use {@link #sendMessage(net.kyori.adventure.text.Component)} instead * @deprecated Use {@link #sendMessage(Identified, Component)}
* or {@link #sendMessage(Identity, Component)} instead
*/ */
@Deprecated @Deprecated
void broadcast(net.kyori.text.Component component); void broadcast(net.kyori.text.Component component);

Datei anzeigen

@ -1,6 +1,6 @@
/** /**
* Provides data structures for creating and manipulating titles. * Provides data structures for creating and manipulating titles.
* *
* @deprecated Replaced with {@link net.kyori.adventure.title} * @deprecated Replaced with {@link net.kyori.adventure.title.Title}
*/ */
package com.velocitypowered.api.util.title; package com.velocitypowered.api.util.title;