diff --git a/src/main/java/net/minestom/server/MinecraftServer.java b/src/main/java/net/minestom/server/MinecraftServer.java index 607a44936..a6d9378fe 100644 --- a/src/main/java/net/minestom/server/MinecraftServer.java +++ b/src/main/java/net/minestom/server/MinecraftServer.java @@ -334,6 +334,7 @@ public final class MinecraftServer { * * @return the data manager */ + @Deprecated public static DataManager getDataManager() { checkInitStatus(dataManager); return dataManager; diff --git a/src/main/java/net/minestom/server/data/Data.java b/src/main/java/net/minestom/server/data/Data.java index 55237cc77..6418df485 100644 --- a/src/main/java/net/minestom/server/data/Data.java +++ b/src/main/java/net/minestom/server/data/Data.java @@ -13,6 +13,7 @@ import java.util.Set; *

* See {@link DataImpl} for the default implementation. */ +@Deprecated public abstract class Data implements PublicCloneable { public static final Data EMPTY = new Data() { diff --git a/src/main/java/net/minestom/server/data/DataImpl.java b/src/main/java/net/minestom/server/data/DataImpl.java index d6ffb5ae4..676bda141 100644 --- a/src/main/java/net/minestom/server/data/DataImpl.java +++ b/src/main/java/net/minestom/server/data/DataImpl.java @@ -11,6 +11,7 @@ import java.util.concurrent.ConcurrentHashMap; /** * {@link Data} implementation which uses a {@link ConcurrentHashMap}. */ +@Deprecated public class DataImpl extends Data { protected final ConcurrentHashMap data = new ConcurrentHashMap<>(); diff --git a/src/main/java/net/minestom/server/data/DataManager.java b/src/main/java/net/minestom/server/data/DataManager.java index 2803dc8f0..3b88fd6ee 100644 --- a/src/main/java/net/minestom/server/data/DataManager.java +++ b/src/main/java/net/minestom/server/data/DataManager.java @@ -23,6 +23,7 @@ import java.util.UUID; * A lot of types are already registered by default so you do not have to add all of them manually, * you can verify if {@link #getDataType(Class)} returns null for the desired type, if it is then you will need to register it. */ +@Deprecated public final class DataManager { private final Map dataTypeMap = new HashMap<>(); diff --git a/src/main/java/net/minestom/server/data/DataType.java b/src/main/java/net/minestom/server/data/DataType.java index 729da70dd..a215d5d29 100644 --- a/src/main/java/net/minestom/server/data/DataType.java +++ b/src/main/java/net/minestom/server/data/DataType.java @@ -12,6 +12,7 @@ import org.jetbrains.annotations.NotNull; * * @param the type of the object */ +@Deprecated public abstract class DataType { /** diff --git a/src/main/java/net/minestom/server/data/SerializableData.java b/src/main/java/net/minestom/server/data/SerializableData.java index ac38a2282..0dad1c8f5 100644 --- a/src/main/java/net/minestom/server/data/SerializableData.java +++ b/src/main/java/net/minestom/server/data/SerializableData.java @@ -11,6 +11,7 @@ import org.jetbrains.annotations.NotNull; *

* See {@link SerializableDataImpl} for the default implementation. */ +@Deprecated public abstract class SerializableData extends Data { /** diff --git a/src/main/java/net/minestom/server/data/SerializableDataImpl.java b/src/main/java/net/minestom/server/data/SerializableDataImpl.java index 2f9112eed..24e187015 100644 --- a/src/main/java/net/minestom/server/data/SerializableDataImpl.java +++ b/src/main/java/net/minestom/server/data/SerializableDataImpl.java @@ -19,6 +19,7 @@ import java.util.concurrent.ConcurrentHashMap; /** * {@link SerializableData} implementation based on {@link DataImpl}. */ +@Deprecated public class SerializableDataImpl extends SerializableData { protected static final DataManager DATA_MANAGER = MinecraftServer.getDataManager(); diff --git a/src/main/java/net/minestom/server/storage/StorageLocation.java b/src/main/java/net/minestom/server/storage/StorageLocation.java index d34a41bd2..5d8d76866 100644 --- a/src/main/java/net/minestom/server/storage/StorageLocation.java +++ b/src/main/java/net/minestom/server/storage/StorageLocation.java @@ -17,6 +17,7 @@ import java.util.Map; * Each {@link StorageLocation} has a {@link StorageSystem} associated to it * which is used to save and retrieve data from keys. */ +@Deprecated public class StorageLocation { private static final DataManager DATA_MANAGER = MinecraftServer.getDataManager(); diff --git a/src/main/java/net/minestom/server/storage/StorageManager.java b/src/main/java/net/minestom/server/storage/StorageManager.java index 4e3bd718a..9e4c9a464 100644 --- a/src/main/java/net/minestom/server/storage/StorageManager.java +++ b/src/main/java/net/minestom/server/storage/StorageManager.java @@ -16,6 +16,7 @@ import java.util.function.Supplier; * Manager used to retrieve {@link StorageLocation} with {@link #getLocation(String, StorageOptions, StorageSystem)} * and define the default {@link StorageSystem} with {@link #defineDefaultStorageSystem(Supplier)}. */ +@Deprecated public final class StorageManager { private static final Logger LOGGER = LoggerFactory.getLogger(StorageManager.class); diff --git a/src/main/java/net/minestom/server/storage/StorageOptions.java b/src/main/java/net/minestom/server/storage/StorageOptions.java index 008bc5a79..7882e63f6 100644 --- a/src/main/java/net/minestom/server/storage/StorageOptions.java +++ b/src/main/java/net/minestom/server/storage/StorageOptions.java @@ -1,5 +1,6 @@ package net.minestom.server.storage; +@Deprecated public class StorageOptions { private boolean compression; diff --git a/src/main/java/net/minestom/server/storage/StorageSystem.java b/src/main/java/net/minestom/server/storage/StorageSystem.java index 085729b72..7461567e3 100644 --- a/src/main/java/net/minestom/server/storage/StorageSystem.java +++ b/src/main/java/net/minestom/server/storage/StorageSystem.java @@ -7,6 +7,7 @@ import org.jetbrains.annotations.Nullable; * Represents a way of storing data by key/value. * The location does not have to be a file or folder path. It is the 'identifier' of the data location. */ +@Deprecated public interface StorageSystem { /**