diff options
Diffstat (limited to 'src/main/java/net/transit/network/packet/StaticPacket.java')
-rw-r--r-- | src/main/java/net/transit/network/packet/StaticPacket.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/net/transit/network/packet/StaticPacket.java b/src/main/java/net/transit/network/packet/StaticPacket.java new file mode 100644 index 0000000..8399041 --- /dev/null +++ b/src/main/java/net/transit/network/packet/StaticPacket.java @@ -0,0 +1,25 @@ +package net.transit.network.packet; + +import net.transit.type.Type; + +public class StaticPacket<D> implements IPacket<D> +{ + private D data; + private Type<D> type; + + public StaticPacket(D dat, Type<D> t) + { + data = dat; + type = t; + } + + public D getData() + { + return data; + } + + @Override + public Type<D> getType() { + return type; + } +}
\ No newline at end of file |