Deprecate some utility classes that still need some additional work

This commit is contained in:
Christian Koop 2023-06-17 16:31:13 +02:00
parent f1fa34f891
commit 3203e4b799
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
3 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,10 @@ import java.util.List;
/**
* Class based off of https://gist.github.com/graywolf336/8153678
*
* @deprecated Will be moved into a more appropriate package and refactored.
*/
@Deprecated
public class ItemSerializer {
/**
* A method to serialize an {@link ItemStack} list to Base64 String.

View File

@ -1,12 +1,12 @@
package com.craftaro.core.utils;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import com.craftaro.core.compatibility.ClassMapping;
import com.craftaro.core.compatibility.CompatibleHand;
import com.craftaro.core.compatibility.CompatibleMaterial;
import com.craftaro.core.compatibility.MethodMapping;
import com.craftaro.core.compatibility.ServerVersion;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.Material;
@ -42,7 +42,10 @@ import java.util.stream.Stream;
/**
* This class uses some Minecraft code and also Paper API
*
* @deprecated Needs to be re-implemented without ClassMapping usage etc. and moved into a more appropriate package
*/
@Deprecated
public class ItemUtils {
static boolean can_getI18NDisplayName = true;

View File

@ -36,7 +36,10 @@ import java.util.zip.GZIPOutputStream;
* bStats collects some data for plugin authors.
* <p>
* Check out https://bStats.org/ to learn more about bStats!
*
* @deprecated Replace with latest version of bStats
*/
@Deprecated
@SuppressWarnings({"WeakerAccess", "unused"})
public class Metrics {
static {