Questioning and Interrogation¶
This documentation refers to an outdated SpongeAPI version and is no longer actively maintained. While the code examples still work for that API version, the policies, guidelines, and some links may have changed. Please refer to the latest version of the documentation for those.
- Be Readin’ This
- Rants for Ship Owners
- For Developers
This ‘ere Sponge be a new versatile Minecraft API. She be made to enrich yer Minecraft experience (and maybe yer pockets), by letting plugins ‘ave their wicked way with the game. There be loads more babbling o’ Sponge here: Here Be The Start Of It All and the ancient history of the freebooting founders of Sponge be found here: The History of Sponge
Ye Sponge (and Minecraft) be needing ye olde Java Runtime Environment to fare properly at sea. What ye will be needing is a “computer”, whatever that be. But ye can find more tattle about what sort of Java to be drinkin’ here: Installing Java
Beta development builds of SpongeForge and SpongeVanilla are already available: Sponge Downloads
Ye Sponge Project be making two seaworthy vessels built using the SpongeAPI:
- SpongeForge, she be a coremod for the famed Minecraft Forge, what be an existing shipyard for Minecraft, well known to seasoned pirates. But she lacks a cross-ocean API, and ye Sponge fills this gap. Sponge be letting server captains to deploy their plugins right easy like, leaving more time for important drinkin’. (Ye good ship SpongeForge were once known as Sponge, until it were renamed to confuse scallywags).
- SpongeVanilla be the stand-alone vessel o’ the Sponge fleet, to hell with Forge, it be sailing alone upon the seas of Minecraft. (She was birthed as Granite, but she docked in Sponge’s ports and we commandeered her, and her crew).
They be found hangin’ around the official shipyards, what be called Ore. They already been makin’ a start on GitHub, but the scurvy laggards ain’t done yet. Fer the time being, yon plugins are hosted on the SpongeForums.
Ye olde Bukkit Project stopped development at their shipyards when the docks caught fire, the ships were devoured by a giant squid in the harbour, and they were overrun by cannibals. Also one of their surviving engineers filed a DMCA takedown black-spot, that be ending further distribution o’ their shipwrights blueprints. That be his right as a pirate, and there ‘aint be no taking down o’ that. If ye be nosey, ye can find more rumours and grist in the annals of The History of Sponge
Nay matey, ye be damned. Someone else might be doin’ the hard work to make some third-party contraption, using voodoo and cannibalism to feed Bukkit to Sponge, but we ain’t a part of it. Sits and drink some rum, and take yer nautical mind off it fer awhile. Watch them whales fight the wild FLARD.
For an existing Forge server, you will need to download Sponge and place it into the mods folder. The server can then be started like any other Forge server.
Non-Forge servers may elect to use SpongeVanilla instead, an implementation that does not rely on Forge. There are guides for migrating from Bukkit and/or Canary elsewhere on SpongeDocs. It is worth noting that many plugin developers from the Bukkit community have thrown their weight behind Sponge, and are planning to make their plugins available for Sponge-powered servers.
Worlds will be able to be ported over. It is up to plugin developers to create conversion processes that will allow you to keep plugin data, if any exists. Some plugin developers may not do this.
On a related note, we will not be providing support for Bukkit plugins on Sponge. However, it may be possible for a third-party to create a way for Bukkit plugins to work on Sponge.
Switching to Sponge should not affect players on your server. If you (as a server owner) migrate correctly, players will be able to connect to your server the same way as they did before you migrated to Sponge. They will not need to have Forge installed - unless your server runs Forge mods, of course.
Sponge provides a Plugin API. This means that you can create new content and gamemodes on the go. Have a look at our plugin pages to get a quick-start: Creating a Plugin
Sponge can’t be used to create new blocks, textures, mobs on the clientside or any other content which would need clientside modifications. The Sponge API wont support sending mods or plugins to the client for now due to security concerns. However you can make use of the ForgeAPI for clients and create Sponge plugins for the serverside. It is even possible to use Sponge on the client-side, but for several tasks mods are still required.
Bukkit’s API contains code licensed under the GPL. This is a large reason why Bukkit met its demise in September 2014; by moving forward with a new API licensed under the MIT license, we can avoid some of the problems that fell upon Bukkit. While this does not free us from Mojang’s control, as their code is proprietary, it is our belief that Mojang supports modding and will continue to do so.
Accessing the server internals (known as “NMS” or “net.minecraft.server” in CraftBukkit) can be done through MCP, which has a large number of names de-obfuscated. However, be aware that accessing the server internals raises the risk of your plugin breaking - this is your prerogative.
See Implementation-dependent Plugins for an introduction about using MCP in your plugin.