Class AutomaticEventSubscriber

java.lang.Object
net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber

public class AutomaticEventSubscriber extends Object
Automatic eventbus subscriber - reads Mod.EventBusSubscriber annotations and passes the class instances to the nBus defined by the annotation. Defaults to MinecraftForge#EVENT_BUS
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • AUTO_SUBSCRIBER

      private static final org.objectweb.asm.Type AUTO_SUBSCRIBER
    • MOD_TYPE

      private static final org.objectweb.asm.Type MOD_TYPE
  • Constructor Details

    • AutomaticEventSubscriber

      public AutomaticEventSubscriber()
  • Method Details

    • inject

      public static void inject(ModContainer mod, net.minecraftforge.forgespi.language.ModFileScanData scanData, ClassLoader loader)
    • value

      private static <R> R value(net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData data, String key, R value)