feat: 兼容1.0.0

This commit is contained in:
2023-10-25 21:08:12 +08:00
parent 13b0e32d5a
commit 6079f4d930
4 changed files with 35 additions and 15 deletions

View File

@@ -1,5 +1,7 @@
package cn.hamster3.mc.plugin.core.common.util;
import cn.hamster3.mc.plugin.core.common.api.CoreAPI;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.sound.Sound;
@@ -16,6 +18,17 @@ import java.util.zip.ZipOutputStream;
@SuppressWarnings("unused")
public final class CoreUtils {
/**
* @deprecated 建议使用 {@link CoreAPI#getGson()}
*/
@Deprecated
public static Gson GSON = CoreAPI.getInstance().getGson();
/**
* @deprecated 建议使用 {@link CoreAPI#getHumanGson()}
*/
@Deprecated
public static Gson GSON_HUMAN = CoreAPI.getInstance().getHumanGson();
private CoreUtils() {
}