Package 

Class InstructionAdapter

  • All Implemented Interfaces:
    net.yakclient.mixins.base.InstructionResolver

    
    public abstract class InstructionAdapter
     implements InstructionResolver
                        

    The instruction resolver allows you to chain multiple InstructionResolvers together and adapt instructions the parents resolved instructions. The top level resolver should almost always be an InstructionReader.

    An example:

    val reader = InstructionReader { ... }
    val adapter1 = object: InstructionAdapter(reader) {
       override fun get(): InsnList = super.get().also { /* Transform */}
    }
    
    val insn = adapter1.get()
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class net.yakclient.mixins.base.InstructionAdapter

        get
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstructionAdapter

        InstructionAdapter(InstructionResolver parent)
        constructs with the given resolver as its parent.