SpongeAPI
SpongeAPI copied to clipboard
A Minecraft plugin API
The Minecraft command `/execute ` can be used to execute `command` for every entity matched by `selector`. However, any Sponge command provided as `command` has no way of retrieving the...
Maybe introduce something like `class.builder()` for registry requests? e.g. `ItemType.of(String)` or `ItemTypes.of(String)` ```java static Optional of(String id) { return Sponge.getRegistry().getType(ItemType.clsas, id); } ```
#### First, some background (there is a TLDR at the bottom, but really you should read this issue) As the API and official implementations have evolved over the years, @Zidane...
In 1.9, spawn eggs no longer use data values for entity types. That is merely for the texture. Instead, they refer to an NBT value to determine the entity to...
Some months ago I stumbled upon this: A plugin was serializing a `Location` to the config. The serialized structure holds the `World`s `UUID` and the position. When deserializing the config,...
As I am working on porting Movecraft to the SpongeAPI I have found a section of code that requires getting the potential drops of a block that the Craft is...
I and others believe instead of shading various database drivers for different database systems, such as H2, MySQL, MariaDB and more, into the Sponge implementation. We should move these into...
Bukkit has TargetReason which allows to check, why agent (entity) selected target (other entity). Sponge's SetAITargetEvent doesn't have such analog. It makes impossible to discover why entity selected other entity...
This is meant as a followup to #1156, taking a more concrete approach. Currently, Guice is used to perform dependency injection on the plugin instance. The di environment contains a...
Sponge's [SqlService](https://jd.spongepowered.org/6.0.0/org/spongepowered/api/service/sql/SqlService.html#getConnectionUrlFromAlias-java.lang.String-) provides managed JDBC DataSources to clients. A DataSource is requested by providing the configuration as String. The format of this String is defined in the API specification as...