Replace ItemTag API with new API that also expands to Tiles and Entities

By: Bjarne Koll <LynxPlay101@gmail.com>
This commit is contained in:
Bukkit/Spigot
2019-04-25 14:24:05 +10:00
parent 3209bcbf56
commit ddfd4b10c4
30 changed files with 416 additions and 22 deletions

View File

@@ -0,0 +1,18 @@
package org.bukkit.persistence;
import org.jetbrains.annotations.NotNull;
/**
* This interface represents the context in which the {@link PersistentDataType} can
* serialize and deserialize the passed values.
*/
public interface PersistentDataAdapterContext {
/**
* Creates a new and empty meta container instance.
*
* @return the fresh container instance
*/
@NotNull
PersistentDataContainer newPersistentDataContainer();
}