diff options
author | Bjarne Koll <LynxPlay101@gmail.com> | 2018-12-01 20:25:24 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-01 20:26:50 +1100 |
commit | e08005992786cff58eff69abd055a6e76499046e (patch) | |
tree | 296cb66c4bd38abd933c8ccd4ec8cb9cd4a2cb4d /src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java | |
parent | 0c1d258bb8185c39ce12c816a826973e94939b0e (diff) | |
download | bukkit-e08005992786cff58eff69abd055a6e76499046e.tar bukkit-e08005992786cff58eff69abd055a6e76499046e.tar.gz bukkit-e08005992786cff58eff69abd055a6e76499046e.tar.lz bukkit-e08005992786cff58eff69abd055a6e76499046e.tar.xz bukkit-e08005992786cff58eff69abd055a6e76499046e.zip |
SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks
Diffstat (limited to 'src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java')
-rw-r--r-- | src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java b/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java new file mode 100644 index 00000000..348fa65f --- /dev/null +++ b/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java @@ -0,0 +1,15 @@ +package org.bukkit.inventory.meta.tags; + +/** + * This interface represents the context in which the {@link ItemTagType} can + * serialize and deserialize the passed values. + */ +public interface ItemTagAdapterContext { + + /** + * Creates a new and empty tag container instance. + * + * @return the fresh container instance + */ + CustomItemTagContainer newTagContainer(); +} |