Interface Platform


public interface Platform
Represents a possible platform or implementation a Game could be running on.
  • Field Details

  • Method Details

    • type

      Retrieves the current Platform.Type this platform is running on.
      Returns:
      The current type
    • executionType

      Platform.Type executionType()
      Retrieves the current Platform.Type the platform is executing on.
      Returns:
      The execution type
    • container

      org.spongepowered.plugin.PluginContainer container(Platform.Component component)
      Returns the PluginContainer for the specified platform Platform.Component.
      Parameters:
      component - The platform component
      Returns:
      The plugin container for the component
    • minecraftVersion

      MinecraftVersion minecraftVersion()
      Gets the current Minecraft version of this platform.
      Returns:
      The Minecraft version
    • asMap

      Map<String,Object> asMap()
      Returns this platform instance, as a key-value map.

      This mechanism allows for platform-specific information like Forge version.

      Returns:
      This platform as a map