Przejdź do treści
SoulFire LogoSoulFire

Developer resources

Find SoulFire Javadocs, source code, dependencies, and plugin examples.

Ten poradnik jest dostępny tylko po angielsku.

This page lists the main references for SoulFire plugin authors. For a guided start, see Build your first plugin. If the template and the current source disagree, trust the source for the SoulFire version you run.

Fabric and Mixin references

ResourceLink
Fabric documentationdocs.fabricmc.net
Fabric wiki: Mixin injection referencetutorial:mixin_injects
Fabric wiki: Access widenerstutorial:accesswideners
SpongePowered Mixin wikigithub.com/SpongePowered/Mixin/wiki

Current package entry points in the Javadocs

Start with these package summaries:

Artifact coordinates

Plugin projects depend on:

groupId:    com.soulfiremc
artifactId: mod
repository: https://repo.codemc.org/repository/maven-public/

Use the version that matches your SoulFire server. Gradle and project layout explains what to do when CodeMC does not list it.

Source tree map

LocationWhat you learn there
mod/src/main/java/com/soulfiremc/server/apiplugin base classes, events, metadata helpers
mod/src/main/java/com/soulfiremc/server/botBotConnection, ControlState, ControlTask
mod/src/main/java/com/soulfiremc/server/settingsproperty model and settings infrastructure
mod/src/main/java/com/soulfiremc/server/grpchow client actions become runtime behavior
proto/src/main/proto/soulfireserver, instance, bot, command, and scripting contracts
mod/src/main/java/com/soulfiremc/server/pluginsbuilt-in plugin implementations

Built-in plugins to study first

If you only read a few internal plugins, read these:

PluginWhy it is useful
AntiAFKsmall, clean example of event hooks plus settings page registration
AutoArmorstaged inventory control
AutoEataction sequencing and fallback behavior
CaptchaSolverricher settings, multiple property types, and more complex behavior
KillAurametadata, control ownership, and manual task markers
DialogHandlerbridging Minecraft dialog state into the API layer

Extra references

Ostatnia aktualizacja:

Czy ta strona jest pomocna?