Class CapabilityTokenSubclass

java.lang.Object
net.minecraftforge.common.asm.CapabilityTokenSubclass
All Implemented Interfaces:
cpw.mods.modlauncher.serviceapi.ILaunchPluginService

public class CapabilityTokenSubclass extends Object implements cpw.mods.modlauncher.serviceapi.ILaunchPluginService
Implements getType() in CapabilityToken subclasses. Using the class's signature to determine the generic type of TypeToken, and then implements getType() using that value.
 Example:

  new CapabilityToken<String>(){}
  Has the signature "CapabilityToken<Ljava/lang/String;>"

  Implements the method:
  public String getType() {
    return "java/lang/String";
  }
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
     

    Nested classes/interfaces inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService

    cpw.mods.modlauncher.serviceapi.ILaunchPluginService.ComputeFlags, cpw.mods.modlauncher.serviceapi.ILaunchPluginService.ITransformerLoader, cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
    private String
     
    private String
     
    private static EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>
     
    private static EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>
    handlesClass​(org.objectweb.asm.Type classType, boolean isEmpty)
     
     
    int
    processClassWithFlags​(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType, String reason)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService

    addResources, customAuditConsumer, getExtension, handlesClass, initializeLaunch, offerResource, processClass, processClass
  • Field Details

  • Constructor Details

    • CapabilityTokenSubclass

      public CapabilityTokenSubclass()
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService
    • handlesClass

      public EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase> handlesClass(org.objectweb.asm.Type classType, boolean isEmpty)
      Specified by:
      handlesClass in interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService
    • processClassWithFlags

      public int processClassWithFlags(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType, String reason)
      Specified by:
      processClassWithFlags in interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService