Class ModWriterForge1_21
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
mods.thecomputerizer.theimpossiblelibrary.forge.core.asm.ModWriterForge
mods.thecomputerizer.theimpossiblelibrary.forge.v21.core.asm.ModWriterForge1_21
public class ModWriterForge1_21
extends mods.thecomputerizer.theimpossiblelibrary.forge.core.asm.ModWriterForge
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.forge.core.asm.ModWriterForge
DIST, EVENT_SUBSCRIBER, EVENT_SUBSCRIBER_BUS, JAVA_LOADING_CONTEXT, MOD_ANNOTATION, SUBSCRIBE_EVENTFields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
core, EMPTY_METHOD_DESC, entryPoint, entryPointDesc, entryPointInternal, entryPointMethods, entryPointMethodTypes, info, javaVersion, modType, modTypeDesc, modTypeInternal -
Constructor Summary
ConstructorsConstructorDescriptionModWriterForge1_21(mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI core, mods.thecomputerizer.theimpossiblelibrary.api.core.loader.MultiVersionModInfo info) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.MethodVisitorgetConstructor(org.objectweb.asm.ClassVisitor visitor) protected org.objectweb.asm.TypegetEventMethod(String className) protected org.objectweb.asm.Typeprotected final voidwriteConstructor(org.objectweb.asm.ClassVisitor visitor) Sets the extraData field of CommonEntryPoint to the FMLJavaModLoadingContext passed into the constructor of the written class so that it is internally accessibleprotected voidMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.forge.core.asm.ModWriterForge
addClassAnnotations, addEntryHooks, addEventSubscriber, addInnerEventSubscriber, mappedEntryPointMethodsMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
addEntryHooks, addFields, addInnerClass, addInnerClass, buildModClass, classInit, constructor, finishWritingClass, generatedModType, getInfo, mapEntryPointMethod, modInterfaces, writeAnnotationArray, writeClassAnnotation, writeClassInit, writeConstructor, writeInnerClass, writeInnerClass, writeMethod, writeMethodAnnotation
-
Constructor Details
-
ModWriterForge1_21
public ModWriterForge1_21(mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI core, mods.thecomputerizer.theimpossiblelibrary.api.core.loader.MultiVersionModInfo info)
-
-
Method Details
-
getConstructor
protected org.objectweb.asm.MethodVisitor getConstructor(org.objectweb.asm.ClassVisitor visitor) - Overrides:
getConstructorin classmods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
-
getEventMethod
- Overrides:
getEventMethodin classmods.thecomputerizer.theimpossiblelibrary.forge.core.asm.ModWriterForge
-
getOptionalContructorType
protected org.objectweb.asm.Type getOptionalContructorType() -
writeMod
-
writeConstructor
protected final void writeConstructor(org.objectweb.asm.ClassVisitor visitor) Sets the extraData field of CommonEntryPoint to the FMLJavaModLoadingContext passed into the constructor of the written class so that it is internally accessible- Overrides:
writeConstructorin classmods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
-