Class ModWriterNeoForge

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
mods.thecomputerizer.theimpossiblelibrary.neoforge.core.asm.ModWriterNeoForge

public abstract class ModWriterNeoForge extends mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.objectweb.asm.Type
     
    protected static final org.objectweb.asm.Type
     
    protected static final org.objectweb.asm.Type
     
    protected static final org.objectweb.asm.Type
     
    protected static final org.objectweb.asm.Type
     
    protected static final org.objectweb.asm.Type
     

    Fields 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    ModWriterNeoForge(mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI core, mods.thecomputerizer.theimpossiblelibrary.api.core.loader.MultiVersionModInfo info, int javaVersion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addClassAnnotations(org.objectweb.asm.ClassVisitor visitor)
     
    protected void
    addEntryHooks(org.objectweb.asm.MethodVisitor visitor, String method)
     
    protected void
    addEventSubscriber(org.objectweb.asm.ClassVisitor visitor, String modid, boolean modBus, boolean client, boolean server)
     
    protected Map.Entry<org.objectweb.asm.ClassWriter, org.objectweb.asm.Type>
    addInnerEventSubscriber(org.objectweb.asm.ClassVisitor outerClass, String modid, boolean modBus, boolean client, boolean server, String innerName, String... entryMethods)
     
    protected org.objectweb.asm.MethodVisitor
    getConstructor(org.objectweb.asm.ClassVisitor visitor)
     
    protected org.objectweb.asm.Type
     
    protected org.objectweb.asm.Type
     
    protected org.objectweb.asm.Type
     
    protected void
    mappedEntryPointMethods(Map<String,String[]> redirects, Map<String, org.objectweb.asm.Type> types)
     
    protected final void
    writeConstructor(org.objectweb.asm.ClassVisitor visitor)
    Sets the extraData field of CommonEntryPoint to the IEventBus passed into the constructor of the written class so that it is internally accessible

    Methods 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, writeMod

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DIST

      protected static final org.objectweb.asm.Type DIST
    • EVENT_BUS

      protected static final org.objectweb.asm.Type EVENT_BUS
    • EVENT_SUBSCRIBER

      protected static final org.objectweb.asm.Type EVENT_SUBSCRIBER
    • EVENT_SUBSCRIBER_BUS

      protected static final org.objectweb.asm.Type EVENT_SUBSCRIBER_BUS
    • MOD_ANNOTATION

      protected static final org.objectweb.asm.Type MOD_ANNOTATION
    • SUBSCRIBE_EVENT

      protected static final org.objectweb.asm.Type SUBSCRIBE_EVENT
  • Constructor Details

    • ModWriterNeoForge

      protected ModWriterNeoForge(mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI core, mods.thecomputerizer.theimpossiblelibrary.api.core.loader.MultiVersionModInfo info, int javaVersion)
  • Method Details

    • addClassAnnotations

      protected void addClassAnnotations(org.objectweb.asm.ClassVisitor visitor)
      Overrides:
      addClassAnnotations in class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
    • addEntryHooks

      protected void addEntryHooks(org.objectweb.asm.MethodVisitor visitor, String method)
    • addEventSubscriber

      protected void addEventSubscriber(org.objectweb.asm.ClassVisitor visitor, String modid, boolean modBus, boolean client, boolean server)
    • addInnerEventSubscriber

      protected Map.Entry<org.objectweb.asm.ClassWriter, org.objectweb.asm.Type> addInnerEventSubscriber(org.objectweb.asm.ClassVisitor outerClass, String modid, boolean modBus, boolean client, boolean server, String innerName, String... entryMethods)
    • getConstructor

      protected org.objectweb.asm.MethodVisitor getConstructor(org.objectweb.asm.ClassVisitor visitor)
      Overrides:
      getConstructor in class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
    • getEventMethod

      protected org.objectweb.asm.Type getEventMethod(String className)
      Specified by:
      getEventMethod in class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
    • getEventSubscriberBusType

      protected org.objectweb.asm.Type getEventSubscriberBusType()
    • getEventSubscriberType

      protected org.objectweb.asm.Type getEventSubscriberType()
    • mappedEntryPointMethods

      protected void mappedEntryPointMethods(Map<String,String[]> redirects, Map<String, org.objectweb.asm.Type> types)
      Specified by:
      mappedEntryPointMethods in class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter
    • writeConstructor

      protected final void writeConstructor(org.objectweb.asm.ClassVisitor visitor)
      Sets the extraData field of CommonEntryPoint to the IEventBus passed into the constructor of the written class so that it is internally accessible
      Overrides:
      writeConstructor in class mods.thecomputerizer.theimpossiblelibrary.api.core.asm.ModWriter