Skip to content

Astera-Solutions/Sledge-API

Repository files navigation

Sledge API

The Developer Interface for SledgeMC.

Sledge API provides the events and hooks that modders use to interact with the game and other mods.

Role

  • Provides the core API classes and annotations.
  • Defines common hooks used by both the loader and the mods.

Features

  • Event Bus: Simple @SubscribeEvent system for handling game events.
  • Lifecycle Hooks: Interfaces for onInitialize, onInitializeClient, and onInitializeServer.
  • Environment API: Tools to detect if the mod is running on a client or server.

Build

To build the API jar:

./gradlew clean build

Note: All the details are explained in the comment notes within the classes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages