SpongeAPI
SpongeAPI copied to clipboard
A Minecraft plugin API
In 1.17, Mojang has introduced their own concept of game events. These are triggered at a location, notifying any listeners within a certain radius. They are used by the sculk...
See https://github.com/SpongePowered/event-impl-gen/pull/12 This is the changes necessary to update for that PR, tracking in a PR until I've had a chance to test these changes more thoroughly.
needs plugin-meta 0.8 to finish + test
This arose from discussion with @Faithcaio - basically the exception messages returned from commands that aren't parsed correctly is... bad. Currently, if you type in a command and it doesn't...
**SpongeAPI** | [**Sponge**](https://github.com/SpongePowered/Sponge/issues/23) Checkstyle issues should not be reported here as those can be more accurately determined by simply running the checkstyle tool. Examples of good issues to report here...
event#block#creator in InteractBlockEvent.Primary.Finish is always not present.
Following #2388, when using builders such as `ItemStack.Builder` the transaction result of `add(Key, value)` is silently ignored. This includes `add`ing to readonly values as in that issue, but could also...
Right now, `CommandResult`s can either be successful or have a `Component` error message, but if another plugin would like to understand *why* a command resulted in an error, the `Component`...
Is there any way to convert between `NBTTagCompound`s (maybe `DataContainer`s in SpongeAPI) and `String`s losslessly? For example, in forge mods we can use `net.minecraft.nbt.JsonToNBT#getTagFromJson` and `net.minecraft.nbt.NBTTagCompound#toString` to complete the conversion...
In the same vein of how permission context calculators work, event context calculators would automatically add `EventContextKey`s to an event's context. A rough outline: ```java @FunctionalInterface public interface EventContextCalculator {...