Skip to content

Plugin API

JonathanxD edited this page Mar 1, 2017 · 4 revisions

Sandstone tries to provide a Sponge-Bukkit-like API, the Sandstone API is very similar to Sponge API and bit similar to Bukkit API.

Creating a Plugin

Sandstone plugin class is very similar to Sponge plugin class. We use Google Guice to Inject dependencies in the code.

Provided Dependencies

By default Sanstone provides following dependencies:

  • Game
  • Platform
  • EventManager
  • PluginManager
  • ServiceManager
  • PluginContainer (of the plugin)
  • PluginDefinition: (of the plugin) Changes in their values is reflected in the PluginContainer (only works during instance initialization).
  • Logger (of the plugin)
  • PluginContainer of others plugins, plugin id should be provided in @com.google.inject.name.Named annotation.

Main class

Clone this wiki locally