@@ -0,0 +1,56 @@
|
||||
declare namespace org {
|
||||
namespace spongepowered {
|
||||
namespace api {
|
||||
// @ts-ignore
|
||||
interface Platform {
|
||||
// @ts-ignore
|
||||
API_ID: string;
|
||||
/**
|
||||
* Retrieves the current {@link Type} this platform is running on.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getType(): org.spongepowered.api.Platform.Type;
|
||||
/**
|
||||
* Retrieves the current {@link Type} the platform is executing on.
|
||||
* <p>A Minecraft instance will have a client and server thread. If the
|
||||
* server is executing, this will return {@linkplain Type#SERVER} but
|
||||
* {@link Platform#getType()} would return {@linkplain Type#CLIENT}.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
getExecutionType(): org.spongepowered.api.Platform.Type;
|
||||
/**
|
||||
* Returns the {@link PluginContainer} for the specified platform
|
||||
* {@link Component}.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getContainer(component: org.spongepowered.api.Platform.Component): org.spongepowered.api.plugin.PluginContainer;
|
||||
/**
|
||||
* Returns the current API plugin container.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getApi(): org.spongepowered.api.plugin.PluginContainer;
|
||||
/**
|
||||
* Returns the current implementation plugin container.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getImplementation(): org.spongepowered.api.plugin.PluginContainer;
|
||||
/**
|
||||
* Gets the current Minecraft version of this platform.
|
||||
*/
|
||||
// @ts-ignore
|
||||
getMinecraftVersion(): org.spongepowered.api.MinecraftVersion;
|
||||
/**
|
||||
* Returns this platform instance, as a key-value map.
|
||||
* <p>The returned map instance is connected directly to this platform
|
||||
* instance. Existing keys like name and version are not modifiable, but
|
||||
* new keys are stored in this instance and are shared between any
|
||||
* references to a map obtained through the retrieved map.</p>
|
||||
* <p>This mechanism allows for platform-specific information like Forge
|
||||
* version.</p>
|
||||
*/
|
||||
// @ts-ignore
|
||||
asMap(): Map<any, any> /*java.util.Map*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user