Package juuxel.unprotect.modlauncher
Class UnprotectLaunchPlugin
java.lang.Object
juuxel.unprotect.modlauncher.UnprotectLaunchPlugin
- All Implemented Interfaces:
cpw.mods.modlauncher.serviceapi.ILaunchPluginService
public final class UnprotectLaunchPlugin
extends Object
implements cpw.mods.modlauncher.serviceapi.ILaunchPluginService
Unprotect's launch plugin service that processes the necessary classes.
The transformations only run for non-empty classes in the
AFTER phase.-
Nested Class Summary
Nested classes/interfaces inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService
cpw.mods.modlauncher.serviceapi.ILaunchPluginService.ITransformerLoader, cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase> handlesClass(org.objectweb.asm.Type classType, boolean isEmpty) name()booleanprocessClass(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cpw.mods.modlauncher.serviceapi.ILaunchPluginService
addResource, addResources, getExtension, handlesClass, initializeLaunch, processClass
-
Field Details
-
TARGET_SYSTEM_PROPERTY
A system property ("unprotect.target") for determining which classes to transform.Possible values (case-insensitive with respect to
Locale.ROOT):all: apply to all classesminecraft+forge(default): apply to Minecraft and (Neo)Forge classesnone: disable Unprotect completely and apply to no classes
- Since:
- 1.1.0
- See Also:
-
MAPPING_LOCATION_SYSTEM_PROPERTY
A system property ("unprotect.mappings") for determining where to load mappings for theminecraft+forgetarget.The value should be a file path to a zip containing the mapping files at
mappings/mappings.tinyin Tiny v2 format. It can also be a list of file paths separated byFile.pathSeparator, of which the first suitable one will be used.If absent, Unprotect will try to load them from the classpath at the same file path.
- Since:
- 1.2.0
- See Also:
-
-
Constructor Details
-
UnprotectLaunchPlugin
public UnprotectLaunchPlugin()
-
-
Method Details
-
name
- Specified by:
namein interfacecpw.mods.modlauncher.serviceapi.ILaunchPluginService
-
handlesClass
public EnumSet<cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase> handlesClass(org.objectweb.asm.Type classType, boolean isEmpty) - Specified by:
handlesClassin interfacecpw.mods.modlauncher.serviceapi.ILaunchPluginService
-
processClass
public boolean processClass(cpw.mods.modlauncher.serviceapi.ILaunchPluginService.Phase phase, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.Type classType) - Specified by:
processClassin interfacecpw.mods.modlauncher.serviceapi.ILaunchPluginService
-