summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/packet/IStaticPacket.java
blob: 01073d3ca0fc638faf94f5ce85c3db7cc69b50e7 (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;

/** Interface describing an unchanging packet.
 * @author Kyle Gunger
 *
 * @param <D> The data type (Object) that the packet transfers.
 */
public interface IStaticPacket<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();
}