Interface IMixinPlatformServiceAgent
-
- All Superinterfaces:
IMixinPlatformAgent
public interface IMixinPlatformServiceAgent extends IMixinPlatformAgent
Service agents provide additional platform-specific extensions leveraged by mixin services. Implementing this interface on an agent class will cause an additional instance to be spun up by the service.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.asm.launch.platform.IMixinPlatformAgent
IMixinPlatformAgent.AcceptResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Collection<IContainerHandle>getMixinContainers()Get environment-specific mixin containersjava.lang.StringgetSideName()Attempt to determine the side name from the current environment.voidinit()Perform initialisation-stage logic for this agentvoidunwire()Deprecated.temporaryvoidwire(MixinEnvironment.Phase phase, IConsumer<MixinEnvironment.Phase> phaseConsumer)Deprecated.temporary-
Methods inherited from interface org.spongepowered.asm.launch.platform.IMixinPlatformAgent
accept, getPhaseProvider, initPrimaryContainer, inject, prepare
-
-
-
-
Method Detail
-
init
void init()
Perform initialisation-stage logic for this agent
-
getSideName
java.lang.String getSideName()
Attempt to determine the side name from the current environment. Return null if the side name cannot be determined by this agent. Return side name orConstants.SIDE_UNKNOWNif the agent is able to determine the side.
-
getMixinContainers
java.util.Collection<IContainerHandle> getMixinContainers()
Get environment-specific mixin containers
-
wire
@Deprecated void wire(MixinEnvironment.Phase phase, IConsumer<MixinEnvironment.Phase> phaseConsumer)
Deprecated.temporaryTemp wiring- Parameters:
phase- Initial phasephaseConsumer- Phase setter callback
-
unwire
@Deprecated void unwire()
Deprecated.temporaryTemp wiring - Called when the DEFAULT phase is started
-
-