From 3ac9793553805fd6b05bcbc849d98ffa305be53b Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Sat, 29 Nov 2014 21:24:27 -0500 Subject: [PATCH] Update EnumWrappers with new constants --- .../protocol/wrappers/EnumWrappers.java | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java index 9dfe6b85..530f5f6f 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java @@ -16,28 +16,29 @@ import com.google.common.collect.Maps; * @author Kristian */ public abstract class EnumWrappers { - public enum ClientCommand { - PERFORM_RESPAWN, - REQUEST_STATS, + public enum ClientCommand { + PERFORM_RESPAWN, + REQUEST_STATS, OPEN_INVENTORY_ACHIEVEMENT; } public enum ChatVisibility { - FULL, - SYSTEM, + FULL, + SYSTEM, HIDDEN; } public enum Difficulty { - PEACEFUL, - EASY, - NORMAL, + PEACEFUL, + EASY, + NORMAL, HARD; } public enum EntityUseAction { - INTERACT, - ATTACK; + INTERACT, + ATTACK, + INTERACT_AT; } /** @@ -47,10 +48,16 @@ public abstract class EnumWrappers { * @author Kristian */ public enum NativeGameMode { - NONE, - SURVIVAL, - CREATIVE, - ADVENTURE; + NOT_SET, + SURVIVAL, + CREATIVE, + ADVENTURE, + SPECTATOR, + + /** + * @deprecated Replaced by NOT_SET + */ + NONE; } private static Class PROTOCOL_CLASS = null;