summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/packet/StaticPacket.java
blob: b14e442e7d994ff274d217b1ce8b38e592867c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package net.transit.network.packet;

import net.transit.type.Type;

public class StaticPacket<D> implements Packet<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;
	}
}