Fix build

This commit is contained in:
TheMode 2021-04-15 08:10:32 +02:00
parent 5cb4be26ff
commit 232e4b8a28

View File

@ -8,17 +8,17 @@ import net.minestom.server.network.player.PlayerConnection;
* <p>Can be specified in {@link net.minestom.server.MinecraftServer#start(String, int,
* ResponseDataConsumer)}.
*
* @deprecated listen to the {@link net.minestom.server.event.server.StatusRequestEvent} instead
* @deprecated listen to the {@link net.minestom.server.event.server.ServerListPingEvent} instead
*/
@FunctionalInterface
@Deprecated
public interface ResponseDataConsumer {
/**
* A method to fill the data of the response.
*
* @param playerConnection The player connection to which the response should be sent.
* @param responseData The data for the response.
*/
void accept(PlayerConnection playerConnection, ResponseData responseData);
/**
* A method to fill the data of the response.
*
* @param playerConnection The player connection to which the response should be sent.
* @param responseData The data for the response.
*/
void accept(PlayerConnection playerConnection, ResponseData responseData);
}