From 592517b9f3b0a042eaa431b77c377096c214f2b0 Mon Sep 17 00:00:00 2001 From: Gabik21 Date: Thu, 29 Aug 2019 19:58:00 +0200 Subject: [PATCH] Remove unnessecary diff --- .../connection/client/ClientConnectionPhase.java | 10 ++++++---- .../proxy/protocol/ProtocolUtils.java | 13 ++----------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConnectionPhase.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConnectionPhase.java index c8727e82b..ba45251a7 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConnectionPhase.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConnectionPhase.java @@ -13,7 +13,8 @@ import com.velocitypowered.proxy.protocol.packet.PluginMessage; public interface ClientConnectionPhase { /** - * Handle a plugin message in the context of this phase. + * Handle a plugin message in the context of + * this phase. * * @param player The player * @param message The message to handle @@ -27,7 +28,8 @@ public interface ClientConnectionPhase { } /** - * Instruct Velocity to reset the connection phase back to its default for the connection type. + * Instruct Velocity to reset the connection phase + * back to its default for the connection type. * * @param player The player */ @@ -35,7 +37,8 @@ public interface ClientConnectionPhase { } /** - * Perform actions just as the player joins the server. + * Perform actions just as the player joins the + * server. * * @param player The player */ @@ -44,7 +47,6 @@ public interface ClientConnectionPhase { /** * Indicates whether the connection is considered complete. - * * @return true if so */ default boolean consideredComplete() { diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java index 77b628e4f..555885575 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/ProtocolUtils.java @@ -19,7 +19,6 @@ public enum ProtocolUtils { /** * Reads a Minecraft-style VarInt from the specified {@code buf}. - * * @param buf the buffer to read from * @return the decoded VarInt */ @@ -41,7 +40,6 @@ public enum ProtocolUtils { /** * Writes a Minecraft-style VarInt to the specified {@code buf}. - * * @param buf the buffer to read from * @param value the integer to write */ @@ -62,9 +60,8 @@ public enum ProtocolUtils { } /** - * Reads a VarInt length-prefixed string from the {@code buf}, making sure to not go over {@code - * cap} size. - * + * Reads a VarInt length-prefixed string from the {@code buf}, making sure to not go over + * {@code cap} size. * @param buf the buffer to read from * @param cap the maximum size of the string, in UTF-8 character length * @return the decoded string @@ -88,7 +85,6 @@ public enum ProtocolUtils { /** * Writes the specified {@code str} to the {@code buf} with a VarInt prefix. - * * @param buf the buffer to write to * @param str the string to write */ @@ -105,7 +101,6 @@ public enum ProtocolUtils { /** * Reads a VarInt length-prefixed byte array from the {@code buf}, making sure to not go over * {@code cap} size. - * * @param buf the buffer to read from * @param cap the maximum size of the string, in UTF-8 character length * @return the byte array @@ -129,7 +124,6 @@ public enum ProtocolUtils { /** * Reads an VarInt-prefixed array of VarInt integers from the {@code buf}. - * * @param buf the buffer to read from * @return an array of integers */ @@ -145,7 +139,6 @@ public enum ProtocolUtils { /** * Reads an UUID from the {@code buf}. - * * @param buf the buffer to read from * @return the UUID from the buffer */ @@ -162,7 +155,6 @@ public enum ProtocolUtils { /** * Writes a list of {@link com.velocitypowered.api.util.GameProfile.Property} to the buffer. - * * @param buf the buffer to write to * @param properties the properties to serialize */ @@ -183,7 +175,6 @@ public enum ProtocolUtils { /** * Reads a list of {@link com.velocitypowered.api.util.GameProfile.Property} from the buffer. - * * @param buf the buffer to read from * @return the read properties */