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

import net.cshift.transit.type.*;

/** Interface describing an unchanging packet.
 *
 * @param <D> The type parameter of the Type being transported
 * @author Kyle Gunger
 */
public interface IStaticPacket<D>
{
	/**Get the packet's data.
	 * 
	 * @return The packet's data
	 */
    public Object getData();
    
    /**Get the packet's type.
     * 
     * @return IType<?> The type of the packet
     */
    public Type<D> getType();
}