#509: Add support for PersistentDataContainer arrays

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2020-06-26 10:49:24 +10:00
parent 46b14c30d7
commit 4bf70de34c

View File

@@ -67,6 +67,11 @@ public interface PersistentDataType<T, Z> {
PersistentDataType<int[], int[]> INTEGER_ARRAY = new PrimitivePersistentDataType<>(int[].class);
PersistentDataType<long[], long[]> LONG_ARRAY = new PrimitivePersistentDataType<>(long[].class);
/*
Complex Arrays.
*/
PersistentDataType<PersistentDataContainer[], PersistentDataContainer[]> TAG_CONTAINER_ARRAY = new PrimitivePersistentDataType<>(PersistentDataContainer[].class);
/*
Nested PersistentDataContainer.
*/