Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Supported annotations:
- @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.
- @EventHandler: Checks that the method is public, non-static, returns void, takes one parameter assignable to FMLEvent, and its owner is annotated with @Mod.
- @Instance: Checks that field is public, static, non-final, of the correct type, and that its owner is annotated with @Mod.
- @Metadata: Checks that the field is public, non-static, non-final, and is of type ModMetadata.
- @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.
- @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 .
- @SubscribeEvent: Checks that the method is public, non-static, returns void, and takes one parameter extending Event.
- @Cancelable: Checks that the type applied to is an Event.
- @HasResult: Checks that the type applied to is an Event.
- @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