Class RuntimeEnumExtender
java.lang.Object
net.minecraftforge.fml.common.asm.RuntimeEnumExtender
- All Implemented Interfaces:
- cpw.mods.modlauncher.serviceapi.ILaunchPluginService
public class RuntimeEnumExtender
extends Object
implements cpw.mods.modlauncher.serviceapi.ILaunchPluginService
Modifies specified enums to allow runtime extension by making the $VALUES field non-final and
 injecting constructor calls which are not valid in normal java code.
- 
Nested Class SummaryNested classes/interfaces inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginServicecpw.mods.modlauncher.serviceapi.ILaunchPluginService.ComputeFlags, cpw.mods.modlauncher.serviceapi.ILaunchPluginService.ITransformerLoader, cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Stringprivate final org.objectweb.asm.Typeprivate final Stringprivate final org.objectweb.asm.Typeprivate final Stringprivate static final org.slf4j.Loggerprivate final org.objectweb.asm.Typeprivate final Stringprivate static final EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>private final org.objectweb.asm.Typeprivate final org.objectweb.asm.Typeprivate static final EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionEnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase>handlesClass(org.objectweb.asm.Type classType, boolean isEmpty) name()intprocessClassWithFlags(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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginServiceaddResources, customAuditConsumer, getExtension, handlesClass, initializeLaunch, offerResource, processClass, processClass
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
STRINGprivate final org.objectweb.asm.Type STRING
- 
ENUMprivate final org.objectweb.asm.Type ENUM
- 
MARKER_IFACEprivate final org.objectweb.asm.Type MARKER_IFACE
- 
ARRAY_UTILSprivate final org.objectweb.asm.Type ARRAY_UTILS
- 
ADD_DESC
- 
UNSAFE_HACKSprivate final org.objectweb.asm.Type UNSAFE_HACKS
- 
CLEAN_DESC
- 
NAME_DESC
- 
EQUALS_DESC
- 
YAY
- 
NAY
 
- 
- 
Constructor Details- 
RuntimeEnumExtenderpublic RuntimeEnumExtender()
 
- 
- 
Method Details- 
name- Specified by:
- namein interface- cpw.mods.modlauncher.serviceapi.ILaunchPluginService
 
- 
handlesClasspublic EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase> handlesClass(org.objectweb.asm.Type classType, boolean isEmpty) - Specified by:
- handlesClassin interface- cpw.mods.modlauncher.serviceapi.ILaunchPluginService
 
- 
processClassWithFlagspublic int processClassWithFlags(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType, String reason) - Specified by:
- processClassWithFlagsin interface- cpw.mods.modlauncher.serviceapi.ILaunchPluginService
 
 
-