A core system to link plugins to one similar API service (Used by GTS, Daycare, and my other plugins)

4.0.0-SNAPSHOT

Snapshot

NickImpact released this version on Sep 15, 2021

435.3 KB
Download

Impactor 4.0.0-SNAPSHOT

This is a snapshot version of the changes integrated with Impactor for 4.0.0, which is now built for API 8 on the Sponge side of things. The API’s new focus for this version is targeting 1.16.5. This build so far appears to be stable on API 8, but is marked as a snapshot build for general code clean-up plus documentation for new features/components.

New

  • Scoreboard API
    • The new scoreboard API is meant to streamline the creation of scoreboards to be as dynamic and controlled as the user/implementer desires. For instance, this scoreboard system does not try to refresh every line based on a global timer, but rather, a per-line/per-objective format where each option controls how it itself is updated.
    • In this build, the following options for line types are available:
      • Constant - Never updating
      • Refreshing - Refreshes its contents per its own timing configuration
      • Listening - Updates its contents based on the result of an event
      • Animated - Iterates through frames, each of which have their own updating technique
    • Documentation for these are started, but not yet complete in this snapshot build. These docs, alongside usage examples, will be complete for release, which is expected after the official release of API 8 builds of Sponge.
    • To demonstrate the API, this code was used to create the following scoreboard: Scoreboard GIF

Changes

  • Updated all dependencies to the latest versions available
  • Updated sponge components to meet API 8
  • Removed need for Mixins
  • Updated UI API for Sponge updates
    • Changes are planned to have the UI API in general match that of the new Scoreboard API design, as to help remove a need of importing more than just the API package
  • To particularly gabizou’s joy, lombok has been removed! Rejoice gabizou!

Notes

  • Sign Queries are currently disabled due to Protocol Control not yet having a compatible API 8 build available. Depending on the state of that project, if it is no longer being worked on, those features will be adapted into Impactor.

Developers

You can import this build of Impactor directly into your project workspace via Gradle with the following repository and dependency specification:

repositories {
    maven {
        name = "Impact-Dev"
        url = "https://maven.impactdev.net/repository/development/"
    }
}

dependencies {
    compile "net.impactdev.impactor:api:4.0.0-SNAPSHOT"
}

Dependencies