建立插件

本章節適用於希望使用 Sponge API 開發插件的開發者,這些文章涵蓋 Sponge API 的各個方面與其背後的概念。重要的是,本章節的目的在於幫助開發者開始使用 Sponge API,而不是涵蓋所有概念。如果你已經熟悉 API,Javadocs 將給你更大的幫助。

備註

It is recommended to have prior experience with developing in Java! Copying-and-pasting examples from the documentation likely will not work, especially without modification.

小訣竅

The Cookbook is a collection of fully functional plugins that each demonstrate a specific part of the SpongeAPI. These plugin 「recipes」 are standalone and are compilable via Gradle or Maven. Some of them demonstrate how to create plugins using other JVM languages such as Scala and Kotlin.