mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-22 04:33:28 +01:00
#958: Further clarify deprecation of TAG_CONTAINER_ARRAY
The commit expands on the deprecation reasoning for PersistentDataType#TAG_CONTAINER_ARRAY to make it more clear for people migrating their data as to why the data type is deprecated. The commit also moves the annotation from obsolete to deprecated. The special handling of this type in the pdc implementation is more annoying than anything else and should not be used down the line, making @Deprecated a more proper annotation for this field. By: Bjarne Koll <lynxplay101@gmail.com>
This commit is contained in:
parent
a8e0a4bdb7
commit
63b7f85ac6
1 changed files with 4 additions and 2 deletions
|
@ -87,9 +87,11 @@ public interface PersistentDataType<P, C> {
|
|||
Complex Arrays.
|
||||
*/
|
||||
/**
|
||||
* @deprecated Use {@link #LIST}'s {@link ListPersistentDataTypeProvider#dataContainers()} instead.
|
||||
* @deprecated Use {@link #LIST}'s {@link ListPersistentDataTypeProvider#dataContainers()} instead as
|
||||
* {@link ListPersistentDataType}s offer full support for primitive types, such as the
|
||||
* {@link PersistentDataContainer}.
|
||||
*/
|
||||
@ApiStatus.Obsolete
|
||||
@Deprecated
|
||||
PersistentDataType<PersistentDataContainer[], PersistentDataContainer[]> TAG_CONTAINER_ARRAY = new PrimitivePersistentDataType<>(PersistentDataContainer[].class);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue