Class AutomaticEventSubscriber
java.lang.Object
net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber
Automatic eventbus subscriber - reads
defined by the annotation. Defaults to
Mod.EventBusSubscriber
annotations and passes the class instances to the
invalid reference
nBus
MinecraftForge#EVENT_BUS-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.objectweb.asm.Typeprivate static final org.apache.logging.log4j.Loggerprivate static final org.objectweb.asm.Typeprivate static final org.objectweb.asm.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinject(ModContainer mod, net.minecraftforge.forgespi.language.ModFileScanData scanData, ClassLoader loader) private static <R> Rvalue(net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData data, String key, R value)
-
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 -
ONLY_IN_TYPE
private static final org.objectweb.asm.Type ONLY_IN_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)
-