Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Supported annotations:
  2. @Mod: Checks that the class applied to is public, non-abstract, and has a no parameter public constructor. If it is an inner class, checks that it is static.
  3. @EventHandler: Checks that the method is public, non-static, returns void, takes one parameter assignable to FMLEvent, and its owner is annotated with @Mod.
  4. @Instance: Checks that field is public, static, non-final, of the correct type, and that its owner is annotated with @Mod.
  5. @Metadata: Checks that the field is public, non-static, non-final, and is of type ModMetadata.
  6. @InstanceFactory: Checks for empty parameters and returns containing class, that it's in a @Mod annotated class, and that there are no other @InstanceFactory methods in the class.
  7. @SidedProxy: Checks that a field is public, static, non-final, that the specified classes are assignable to the type, each proxy class has a no parameter public constructor, and its owner is annotated with @Mod .
  8. @SubscribeEvent: Checks that the method is public, non-static, returns void, and takes one parameter extending Event.
  9. @Cancelable: Checks that the type applied to is an Event.
  10. @HasResult: Checks that the type applied to is an Event.
  11. @NetworkCheckHandler: Checks that the method applied to returns boolean and takes parameters String and Side
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement