Class MixinPlatformAgentDefault
java.lang.Object
org.spongepowered.asm.launch.platform.MixinPlatformAgentAbstract
org.spongepowered.asm.launch.platform.MixinPlatformAgentDefault
- All Implemented Interfaces:
IMixinPlatformAgent
Default platform agent, handles the mixin manifest keys such as
MixinConfigs and MixinConnector.
CHANGED BY CLEANROOM:
Removed deprecated compatibility level, token providers manifest key support
Allow default agent to reject if no relevant manifest attributes are present
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.asm.launch.platform.IMixinPlatformAgent
IMixinPlatformAgent.AcceptResult -
Field Summary
Fields inherited from class org.spongepowered.asm.launch.platform.MixinPlatformAgentAbstract
handle, logger, manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(MixinPlatformManager manager, IContainerHandle handle) Accept and bind to a container handle.voidprepare()Called during pre-initialisation, after all tweakers and tweak containers have been added to the environment.Methods inherited from class org.spongepowered.asm.launch.platform.MixinPlatformAgentAbstract
getPhaseProvider, initPrimaryContainer, inject, invokeStringMethod, toString, unwire, wireMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.asm.launch.platform.IMixinPlatformAgent
allowDefaultAgentToProcess
-
Constructor Details
-
MixinPlatformAgentDefault
public MixinPlatformAgentDefault()
-
-
Method Details
-
accept
public IMixinPlatformAgent.AcceptResult accept(MixinPlatformManager manager, IContainerHandle handle) Description copied from interface:IMixinPlatformAgentAccept and bind to a container handle. This method is called for agents hosted byMixinContainerand the agent should react accordingly. If the agent is not able to delegate for container handles of the supplied type, this method should return false to indicate that the agent should not be added for this container.- Specified by:
acceptin interfaceIMixinPlatformAgent- Overrides:
acceptin classMixinPlatformAgentAbstract- Parameters:
manager- platform manager instancehandle- handle to container- Returns:
- AcceptResult representing this agent's acceptance of the supplied container
-
prepare
public void prepare()Description copied from interface:IMixinPlatformAgentCalled during pre-initialisation, after all tweakers and tweak containers have been added to the environment.- Specified by:
preparein interfaceIMixinPlatformAgent- Overrides:
preparein classMixinPlatformAgentAbstract
-