@@ -0,0 +1,609 @@
+%0Apackage forager.server;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class EventMap %7B%0A%0A    protected static final Map%3CInteger, Class%3C?%3E%3E intToClass = new HashMap%3C%3E();%0A    protected static final Map%3CClass%3C?%3E, Integer%3E classToInt = new HashMap%3C%3E();%0A%0A    public EventMap() %7B %7D%0A%0A    protected static void addMapping(int id, Class%3C?%3E clazz) %7B%0A        intToClass.put(id, clazz);%0A        classToInt.put(clazz, id);%0A    %7D%0A%0A    public static Class%3C?%3E getClass(int id) %7B%0A        return intToClass.get(id);%0A    %7D%0A%0A    public static int getInt(Class%3C?%3E clazz) %7B%0A        return classToInt.get(clazz);%0A    %7D%0A%7D%0A

Add event map base class