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.ITransformationServicename インタフェース内 cpw.mods.modlauncher.api.ITransformationServicepublic void initialize(cpw.mods.modlauncher.api.IEnvironment environment)
cpw.mods.modlauncher.api.ITransformationServiceinitialize インタフェース内 cpw.mods.modlauncher.api.ITransformationServiceenvironment - environment - query state from here to determine viabilitypublic void beginScanning(cpw.mods.modlauncher.api.IEnvironment environment)
cpw.mods.modlauncher.api.ITransformationServicebeginScanning インタフェース内 cpw.mods.modlauncher.api.ITransformationServiceenvironment - 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.ITransformationServicepublic 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.ITransformationServiceonLoad インタフェース内 cpw.mods.modlauncher.api.ITransformationServiceenvironment - 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.ITransformationServiceITransformationService.name()
to prevent collisions.arguments インタフェース内 cpw.mods.modlauncher.api.ITransformationServiceargumentBuilder - 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.ITransformationServiceITransformer is the fundamental operator of the system.transformers インタフェース内 cpw.mods.modlauncher.api.ITransformationServiceITransformationService.onLoad(IEnvironment, Set)
and ITransformationService.initialize(IEnvironment), so you can return an appropriate Transformer set for the environment
you find yourself in.