Creating a Plugin
This section is intended for developers who wish to develop plugins with the Sponge API. The articles cover various aspects of the Sponge API and the concepts behind it. It is important to understand that the intent of this section is to help developers get started with the Sponge API, not to cover every concept. The Javadocs will be of great help to you once you are comfortable with the API.
Obs
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.
Tips
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.
Innhold
- Byggesystemer
- Sette opp ditt arbeidsmiljø
- Setting Up Your Project
- Plugin Identifiers
- Main Plugin Class
- Plugin-livssyklus
- Dependency Injection
- Practices
- Optionals
- Logging and Debugging
- Kommandoer
- Hendelser
- Ressurs-API-et
- Konfigurere plugins
- Tekst
- Data-API-et
- Blokker
- Entities
- Items
- Tilbud om handel
- Effekter
- Planlegger
- Tjenester
- Databaser
- Tillatelser
- Utestengelser
- Bokvisninger
- Economy
- Generering av verden
- Tilleggshåndterer
- Game Profile Manager
- Offline Player Data
- Plugin Debugging
- Tab Lists
- Plugin Metadata
- Ray Tracing
- Opplæring
- Implementation-dependent Plugins