From aaff4fc71027968f22100d216ff22edc42a96629 Mon Sep 17 00:00:00 2001 From: Trumeet Date: Thu, 14 Jul 2022 11:42:26 -0700 Subject: Refactor: Use GSON to deserialize enum WorldKey Signed-off-by: Trumeet --- src/main/java/moe/ymc/acron/common/WorldKey.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/moe/ymc/acron/common') diff --git a/src/main/java/moe/ymc/acron/common/WorldKey.java b/src/main/java/moe/ymc/acron/common/WorldKey.java index 8d47737..9e4212d 100644 --- a/src/main/java/moe/ymc/acron/common/WorldKey.java +++ b/src/main/java/moe/ymc/acron/common/WorldKey.java @@ -1,7 +1,12 @@ package moe.ymc.acron.common; +import com.google.gson.annotations.SerializedName; + public enum WorldKey { + @SerializedName("overworld") OVERWORLD, + @SerializedName("nether") NETHER, + @SerializedName("end") END } \ No newline at end of file -- cgit v1.2.3