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