Criar um Plugin
Esta secção destina-se a desenvolvedores que queiram criar plugins com a SpongeAPI. Os artigos cobrem vários aspetos da SpongeAPI e dos conceitos por trás dela. É importante que percebas que o intuito desta secção é ajudar os desenvolvedores a iniciarem-se com a SpongeAPI, e não cobrir todos os conceitos. Os Javadocs serão uma grande ajuda assim que estiveres confortável com a API.
Nota
If you are familiar with SpongeAPI 7 and need assistance migrating your plugin to SpongeAPI 8 or later, see Migrating from API 7 to API 8.
Nota
It is suggested to have prior experience with developing in Java! It is also highly recommended to take code examples from the documentation as purely educational resources, as copying-and-pasting examples from the documentation likely will not work, especially without modification.
Dica
The Test Plugin Suite 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.
Conteúdos
- API-Versions
- Migrating from API 7 to API 8
- Build Systems
- Setting Up Your Workspace
- Setting Up Your Project
- Plugin Identifiers
- Classe Main de um Plugin
- Ciclo de Vida de um Plugin
- Dependency Injection
- Practices
- Optionals
- Logging and Debugging
- Text
- Plugin Commands
- Events
- Configuring Plugins
- The Data API
- Blocks
- Entities
- Items
- Inventory
- Trade-Offers
- Effects
- Scheduler
- Services
- Databases
- Permissions
- Bans
- Metrics Collection
- Book Views
- Economia
- Placeholders
- World Generation
- Plugin Manager
- Game Profile Manager
- Offline Player Data
- Tab Lists
- Plugin Metadata
- Ray Tracing
- Plugin Debugging
- Tutoriais
- Implementation-dependent Plugins