Creando un Plugin
This section is intended for developers who wish to develop plugins with SpongeAPI. The articles cover various aspects of SpongeAPI and the concepts behind it. It is important to understand that the intent of this section is to help developers get started with SpongeAPI, not to cover every concept. The Javadocs will be of great help to you once you are comfortable with the API.
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.
Truco
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. Note that some of the examples may not yet be updated for the latest API revisions!
Contenidos
- API-Versions
- Sistemas de Compilación
- Configuración de su Espacio de Trabajo
- Configurando Su Proyecto
- Identificadores de Complementos
- Clase de Plug-in Principal
- Ciclo de vida del Plugin
- Inyección de Dependencia
- Prácticas
- Opcionales
- Registro y Depuración
- Texto
- Plugin Commands
- Eventos
- Configurando Extensiones
- La API de Activos
- La API de Datos
- Bloques
- Entidades
- Articulos
- Ofertas de Intercambio
- Efectos
- Programador
- Servicios
- Bases de datos
- Permisos
- Baneos
- Metrics Collection
- Vistas del Libro
- Economía
- Placeholders
- Generación de Mundo
- Administrador de Complementos
- Administrador de Perfiles del Juego
- Datos del Jugador Fuera de Línea
- Listas de Tabulaciones
- Metadatos del Complemento
- Trazado de Rayos (Ray Tracing)
- Depuración de Complemento
- Tutoriales
- Implementation-dependent Plugins