summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java
diff options
context:
space:
mode:
authorBjarne Koll <LynxPlay101@gmail.com>2018-12-01 20:25:24 +1100
committermd_5 <git@md-5.net>2018-12-01 20:26:50 +1100
commite08005992786cff58eff69abd055a6e76499046e (patch)
tree296cb66c4bd38abd933c8ccd4ec8cb9cd4a2cb4d /src/main/java/org/bukkit/inventory/meta/tags/ItemTagAdapterContext.java
parent0c1d258bb8185c39ce12c816a826973e94939b0e (diff)
downloadbukkit-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.java15
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();
+}