package net.transit.network.packet; import net.transit.type.Type; /** * @author Kyle Gunger * * @param The data type (Object) that the packet transfers. */ public interface Packet { /**Get the packet's data * * @return The packet's data */ public D getData(); /**Get the packet's type * * @return IType<> The type of the packet */ public Type getType(); }