All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.hendrixshen.magiclib.compat.api.annotation.InitMethod Maven / Gradle / Ivy

There is a newer version: 0.7.398+fe2125a-beta
Show newest version
package top.hendrixshen.magiclib.compat.api.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * MagicLibMixinPlugin auxiliary annotation.
 *
 * 

Use Mixin to inject a new constructor method into the target class. * *

This method is only used to locate the original constructor method and works * similarly to the {@link org.spongepowered.asm.mixin.Shadow} functionality * provided by Mixin. * *

When this method is called for a method decorated with {@link ThisInitMethod}, * the list of formal parameters of the method should be consistent with the list of * formal parameters of the constructor of the target class. * *

When this method is called for a method decorated with {@link SuperInitMethod}, * the list of formal parameters of the method should be consistent with the list of * formal parameters of the constructor method of the superclass of the target class. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface InitMethod { }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy