feat: 兼容1.0.0
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user