Interface IMixinPlatformServiceAgent
- All Superinterfaces:
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
Modifier and TypeMethodDescriptionGet environment-specific mixin containersAttempt 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.temporaryMethods inherited from interface org.spongepowered.asm.launch.platform.IMixinPlatformAgent
accept, getPhaseProvider, initPrimaryContainer, inject, prepare
-
Method Details
-
init
void init()Perform initialisation-stage logic for this agent -
getSideName
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
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.temporaryTemp wiring - Called when the DEFAULT phase is started
-