summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/packet/MetaPacket.java
blob: 02405195ced5f54df07e0fcb816a2c23881e3023 (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
26
27
28
29
30
31
32
33
package net.transit.network.packet;

import net.transit.type.Type;

public class MetaPacket<D, M> implements Packet<D>
{
	
	private D data;
	private M metaData;
	private Type<D> type;

    public MetaPacket(D dat, Type<D> t, M meta)
    {
        data = dat;
        type = t;
        metaData = meta;
    }

    public D getData()
    {
        return data;
    }
    
    public M getMetaData()
    {
    	return metaData;
    }
    
    @Override
	public Type<D> getType() {
		return type;
	}
}