The Developer Interface for SledgeMC.
Sledge API provides the events and hooks that modders use to interact with the game and other mods.
- Provides the core API classes and annotations.
- Defines common hooks used by both the loader and the mods.
- Event Bus: Simple
@SubscribeEventsystem for handling game events. - Lifecycle Hooks: Interfaces for
onInitialize,onInitializeClient, andonInitializeServer. - Environment API: Tools to detect if the mod is running on a client or server.
To build the API jar:
./gradlew clean buildNote: All the details are explained in the comment notes within the classes.