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 Mod.EventBusSubscriber.Bus 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)