Package net.neoforged.fml.common.asm
Class AccessTransformerService
java.lang.Object
net.neoforged.fml.common.asm.AccessTransformerService
- All Implemented Interfaces:
ILaunchPluginService
-
Nested Class Summary
Nested classes/interfaces inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService
ILaunchPluginService.ComputeFlags, ILaunchPluginService.ITransformerLoader, ILaunchPluginService.Phase
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.neoforged.accesstransformer.api.AccessTransformerEngine
private static final EnumSet
<ILaunchPluginService.Phase> private static final EnumSet
<ILaunchPluginService.Phase> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandlesClass
(org.objectweb.asm.Type classType, boolean isEmpty) If this plugin wants to receive theClassNode
intoILaunchPluginService.processClass(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase, org.objectweb.asm.tree.ClassNode, org.objectweb.asm.Type)
name()
The name of this plugin.int
processClassWithFlags
(ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType, String reason) Each class loaded is offered to the plugin for processing.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
-
engine
public final net.neoforged.accesstransformer.api.AccessTransformerEngine engine -
YAY
-
NAY
-
-
Constructor Details
-
AccessTransformerService
public AccessTransformerService()
-
-
Method Details
-
name
Description copied from interface:ILaunchPluginService
The name of this plugin. Must be unique. Multiple plugins by the same name will result in a hard exit. Launcher and other systems will rely on this name to find services provided by this plugin, so it should be stable.- Specified by:
name
in interfaceILaunchPluginService
- Returns:
- the name of the plugin
-
processClassWithFlags
public int processClassWithFlags(ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType, String reason) Description copied from interface:ILaunchPluginService
Each class loaded is offered to the plugin for processing. Ordering between plugins is not known.- Specified by:
processClassWithFlags
in interfaceILaunchPluginService
- Parameters:
phase
- The phase of the supplied class nodeclassNode
- the classnode to processclassType
- the name of the classreason
- Reason for transformation. "classloading" or the name of anILaunchPluginService
- Returns:
- The
ILaunchPluginService.ComputeFlags
for this class
-
handlesClass
public EnumSet<ILaunchPluginService.Phase> handlesClass(org.objectweb.asm.Type classType, boolean isEmpty) Description copied from interface:ILaunchPluginService
If this plugin wants to receive theClassNode
intoILaunchPluginService.processClass(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase, org.objectweb.asm.tree.ClassNode, org.objectweb.asm.Type)
- Specified by:
handlesClass
in interfaceILaunchPluginService
- Parameters:
classType
- the class to considerisEmpty
- if the class is empty at present (indicates no backing file found)- Returns:
- the set of Phases the plugin wishes to be called back with
-