for (Method m : c.getDeclaredMethods())
{
if (m.isAnnotationPresent(SideOnly.class))
{
SideOnly annot = m.getAnnotation(SideOnly.class);
if (!annot.value().equals(FMLCommonHandler.instance().getSide()))
{
continue;
}
}
if (Modifier.isStatic(m.getModifiers()))
{
call = new FECallable(m);
}
else
{
call = new FECallable(m, obj);
}
for (Annotation annot : m.getAnnotations())
{
String name = annot.annotationType().getName();
callables.put(name, call);
}
}
}
catch (Throwable e)