diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2019-11-21 18:35:14 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2019-11-21 18:35:14 -0500 |
commit | d08cbf6b8705df234077c49608de3c2f7ff0e3fa (patch) | |
tree | 6e8705d65e4e0f0c1cafe9736980504b5b6f9cde /src/main/java/net/transit/network/packet/Packet.java | |
parent | df044930bca4252ff6e4814c654a612c6aee2136 (diff) |
[Update] Codebase updated to 0.2.8
~ Rewrote files and documentation for cohesion
~ Removed I from the start of interface names
Diffstat (limited to 'src/main/java/net/transit/network/packet/Packet.java')
-rw-r--r-- | src/main/java/net/transit/network/packet/Packet.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/net/transit/network/packet/Packet.java b/src/main/java/net/transit/network/packet/Packet.java new file mode 100644 index 0000000..0b7c832 --- /dev/null +++ b/src/main/java/net/transit/network/packet/Packet.java @@ -0,0 +1,23 @@ +package net.transit.network.packet; + +import net.transit.type.Type; + +/** + * @author Kyle Gunger + * + * @param <D> The data type (Object) that the packet transfers. + */ +public interface Packet<D> +{ + /**Get the packet's data + * + * @return <D> The packet's data + */ + public D getData(); + + /**Get the packet's type + * + * @return IType<<D>> The type of the packet + */ + public Type<D> getType(); +}
\ No newline at end of file |