Package cpw.mods.fml.relauncher

Examples of cpw.mods.fml.relauncher.SideOnly


            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)
View Full Code Here


            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()))
                {
                    continue;
                }

                call = new FECallable(m);

                for (Annotation annot : m.getAnnotations())
                {
                    String name = annot.annotationType().getName();
                    callables.put(name, call);
                }
            }
        }
        catch (Throwable e)
View Full Code Here

TOP

Related Classes of cpw.mods.fml.relauncher.SideOnly

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.