summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java')
-rw-r--r--src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java b/src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java
new file mode 100644
index 0000000..fca43e5
--- /dev/null
+++ b/src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java
@@ -0,0 +1,11 @@
+package net.cshift.transit.network.packet;
+
+/** Interface describing a packet where the data can change as it's transferred.
+ *
+ * @param <D> The type parameter of the Type being transported
+ * @author Kyle Gunger
+ */
+public interface IDynamicPacket<D> extends IStaticPacket<D>{
+ /** Set the packet's data. */
+ public void setData(Object dat);
+}