summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/network/packet/MetaPacket.java
blob: e4cffdf007c86e931926206f63764e95159f530e (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 IPacket<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;
	}
}