package net.transit.network.packet; import net.transit.type.Type; public class MetaPacket implements Packet { private D data; private M metaData; private Type type; public MetaPacket(D dat, Type t, M meta) { data = dat; type = t; metaData = meta; } public D getData() { return data; } public M getMetaData() { return metaData; } @Override public Type getType() { return type; } }