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
Modifier and TypeFieldDescriptionprivate static final org.objectweb.asm.Type
private static final org.apache.logging.log4j.Logger
private static final org.objectweb.asm.Type
private static final org.objectweb.asm.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
inject
(ModContainer mod, net.minecraftforge.forgespi.language.ModFileScanData scanData, ClassLoader loader) private static <R> R
value
(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)
-