public class FMLServiceProvider
extends java.lang.Object
implements cpw.mods.modlauncher.api.ITransformationService
コンストラクタと説明 |
---|
FMLServiceProvider() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
arguments(java.util.function.BiFunction<java.lang.String,java.lang.String,joptsimple.OptionSpecBuilder> argumentBuilder)
Define command line arguments for your mod service.
|
void |
argumentValues(cpw.mods.modlauncher.api.ITransformationService.OptionResult option) |
void |
beginScanning(cpw.mods.modlauncher.api.IEnvironment environment)
Scan for mods (but don't classload them), identify metadata that might drive
game functionality.
|
void |
initialize(cpw.mods.modlauncher.api.IEnvironment environment)
Initialize your service.
|
java.lang.String |
name()
The name of this mod service.
|
void |
onLoad(cpw.mods.modlauncher.api.IEnvironment environment,
java.util.Set<java.lang.String> otherServices)
Load your service.
|
java.util.List<java.util.Map.Entry<java.lang.String,java.nio.file.Path>> |
runScan(cpw.mods.modlauncher.api.IEnvironment environment) |
java.util.List<cpw.mods.modlauncher.api.ITransformer> |
transformers()
The
ITransformer is the fundamental operator of the system. |
public java.lang.String name()
cpw.mods.modlauncher.api.ITransformationService
name
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
public void initialize(cpw.mods.modlauncher.api.IEnvironment environment)
cpw.mods.modlauncher.api.ITransformationService
initialize
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
environment
- environment - query state from here to determine viabilitypublic void beginScanning(cpw.mods.modlauncher.api.IEnvironment environment)
cpw.mods.modlauncher.api.ITransformationService
beginScanning
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
environment
- environmentpublic java.util.List<java.util.Map.Entry<java.lang.String,java.nio.file.Path>> runScan(cpw.mods.modlauncher.api.IEnvironment environment)
runScan
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
public void onLoad(cpw.mods.modlauncher.api.IEnvironment environment, java.util.Set<java.lang.String> otherServices) throws cpw.mods.modlauncher.api.IncompatibleEnvironmentException
cpw.mods.modlauncher.api.ITransformationService
onLoad
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
environment
- environment - query state from hereotherServices
- other services loaded with the systemcpw.mods.modlauncher.api.IncompatibleEnvironmentException
- if there is an incompatibility detected. Identify specifics in
the exception messagepublic void arguments(java.util.function.BiFunction<java.lang.String,java.lang.String,joptsimple.OptionSpecBuilder> argumentBuilder)
cpw.mods.modlauncher.api.ITransformationService
ITransformationService.name()
to prevent collisions.arguments
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
argumentBuilder
- a function mapping name, description to a set of JOptSimple properties for that argumentpublic void argumentValues(cpw.mods.modlauncher.api.ITransformationService.OptionResult option)
argumentValues
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
@Nonnull public java.util.List<cpw.mods.modlauncher.api.ITransformer> transformers()
cpw.mods.modlauncher.api.ITransformationService
ITransformer
is the fundamental operator of the system.transformers
インタフェース内 cpw.mods.modlauncher.api.ITransformationService
ITransformationService.onLoad(IEnvironment, Set)
and ITransformationService.initialize(IEnvironment)
, so you can return an appropriate Transformer set for the environment
you find yourself in.