package pl.radical.open.gg.packet; public abstract class AbstractGGIncomingPacket implements GGIncomingPackage { public int getPacketType() { return this.getClass().getAnnotation(IncomingPacket.class).type(); } public String getPacketLabel() { return this.getClass().getAnnotation(IncomingPacket.class).label(); } }