Small code cleanups
This commit is contained in:
@@ -5,6 +5,6 @@ package com.velocitypowered.api.event;
|
||||
*/
|
||||
public enum PostOrder {
|
||||
|
||||
FIRST, EARLY, NORMAL, LATE, LAST;
|
||||
FIRST, EARLY, NORMAL, LATE, LAST
|
||||
|
||||
}
|
||||
|
@@ -2,7 +2,6 @@ package com.velocitypowered.api.event.connection;
|
||||
|
||||
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CANCELLED_BY_PROXY;
|
||||
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.CONFLICTING_LOGIN;
|
||||
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.PRE_SERVER_JOIN;
|
||||
import static com.velocitypowered.api.event.connection.DisconnectEvent.LoginStatus.SUCCESSFUL_LOGIN;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
|
@@ -58,7 +58,7 @@ public interface ProxyServer extends Audience {
|
||||
* Broadcasts a message to all players currently online.
|
||||
*
|
||||
* @param component the message to send
|
||||
* @deprecated Use {@link #sendMessage(Component)} instead
|
||||
* @deprecated Use {@link #sendMessage(net.kyori.adventure.text.Component)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
void broadcast(net.kyori.text.Component component);
|
||||
|
@@ -24,6 +24,7 @@
|
||||
|
||||
package com.velocitypowered.api.util;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
@@ -41,9 +42,7 @@ class FastUuidSansHyphens {
|
||||
private static final long[] HEX_VALUES = new long[128];
|
||||
|
||||
static {
|
||||
for (int i = 0; i < HEX_VALUES.length; i++) {
|
||||
HEX_VALUES[i] = -1;
|
||||
}
|
||||
Arrays.fill(HEX_VALUES, -1);
|
||||
|
||||
HEX_VALUES['0'] = 0x0;
|
||||
HEX_VALUES['1'] = 0x1;
|
||||
|
@@ -13,5 +13,5 @@ public enum BossBarColor {
|
||||
GREEN,
|
||||
YELLOW,
|
||||
PURPLE,
|
||||
WHITE;
|
||||
WHITE
|
||||
}
|
||||
|
Reference in New Issue
Block a user