@@ -0,0 +1,601 @@
+package info.u_team.u_team_core.util;%0A%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0A%0Aimport org.objectweb.asm.Type;%0A%0Aimport net.minecraftforge.fml.ModList;%0Aimport net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData;%0A%0Apublic class AnnotationUtil %7B%0A%09%0A%09public static List%3CAnnotationData%3E getAnnotations(String modid, Type type) %7B%0A%09%09return ModList.get() //%0A%09%09%09%09.getModFileById(modid) //%0A%09%09%09%09.getFile() //%0A%09%09%09%09.getScanResult() //%0A%09%09%09%09.getAnnotations() //%0A%09%09%09%09.stream() //%0A%09%09%09%09.filter(data -%3E type.equals(data.getAnnotationType())) //%0A%09%09%09%09.collect(Collectors.toList());%0A%09%7D%0A%09%0A%7D%0A

Add annotation util to get all annotations of a mod by type