summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/packet/IPacket.java
blob: deafdf89051bdf8ad11dcf142ff209d1cf66a164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 IPacket<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();
}