2022-02-06 16:19:05 +00:00
|
|
|
|
package love.distributedrebirth.bassboonyd;
|
|
|
|
|
|
|
|
|
|
import java.lang.reflect.Method;
|
|
|
|
|
|
2022-08-24 15:33:39 +00:00
|
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
2022-02-06 16:19:05 +00:00
|
|
|
|
@BãßBȍőnAnnotationInfoʸᴰ(required = {})
|
|
|
|
|
public interface DefaultInitMethodʸᴰ {
|
|
|
|
|
|
|
|
|
|
default void BOON_INIT(Object boon) {
|
|
|
|
|
try {
|
|
|
|
|
for (Method m:boon.getClass().getMethods()) {
|
|
|
|
|
if (m.isAnnotationPresent(BãßBȍőnInitMethodʸᴰ.class)) {
|
|
|
|
|
m.invoke(boon, this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|