summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-11-18 14:30:50 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-11-18 14:30:50 -0500
commit0d147b3a184fc311bd3dae6bf1c974722753b3bf (patch)
tree33d3ef5f8b37831f4704613e98f76a5f11f1f3d4 /src/main/java/net/cshift/transit/network/packet/IDynamicPacket.java
parent5c5e1b3dd0985986a941a65726f8f2d7bff7a188 (diff)
Change namespace againHEADmain
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);
+}