summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/transit/network/packet/IStaticPacket.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/cshift/transit/network/packet/IStaticPacket.java')
-rw-r--r--src/main/java/net/cshift/transit/network/packet/IStaticPacket.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/net/cshift/transit/network/packet/IStaticPacket.java b/src/main/java/net/cshift/transit/network/packet/IStaticPacket.java
new file mode 100644
index 0000000..506a166
--- /dev/null
+++ b/src/main/java/net/cshift/transit/network/packet/IStaticPacket.java
@@ -0,0 +1,23 @@
+package net.cshift.transit.network.packet;
+
+import net.cshift.transit.type.*;
+
+/** Interface describing an unchanging packet.
+ *
+ * @param <D> The type parameter of the Type being transported
+ * @author Kyle Gunger
+ */
+public interface IStaticPacket<D>
+{
+ /**Get the packet's data.
+ *
+ * @return The packet's data
+ */
+ public Object getData();
+
+ /**Get the packet's type.
+ *
+ * @return IType<?> The type of the packet
+ */
+ public Type<D> getType();
+}