Contributing to Annotater
Annotater is Fabric’s project for documenting Minecraft’s code with Javadocs, annotations, and Unpick. Minecraft Dev shows annotater’s Javadocs in Minecraft classes, lets you edit them in place, and optionally manages git operations and pull requests for you. It works in any project for a Minecraft version annotater covers.
Before contributing, read annotater’s contribution guidelines.
Setting Up
Open the settings at Settings > Languages & Frameworks > Minecraft Development > Annotater. In Fabric projects you can
also press Alt+Enter on any Minecraft class, field or method and choose Edit Annotater Javadoc, which opens these
settings until annotater is set up.

Check Enable annotater, then choose where annotater is checked out:
- Clone annotater automatically: click
Clone or Update Annotater, and Minecraft Dev clones the branch for your project’s Minecraft version. This mode needs the Git plugin, and is the only mode that can manage git operations and pull requests for you. - Use an existing annotater directory: point it at your own clone. Minecraft Dev saves your changes there, but you commit, push and open pull requests yourself.
To turn the feature off again, uncheck Enable annotater.
Viewing Javadocs
Once enabled, Minecraft classes show annotater’s Javadocs as /// comments. The banner at the top of the editor says
which annotater checkout they come from, and a tiny potato icon in the gutter marks each documented class or member. Clicking
on the icon edits that Javadoc.

Editing Javadocs
Put the caret on a Minecraft class, field or method, press Alt+Enter and choose Edit Annotater Javadoc. It is also
in the editor’s right-click menu.

A /// comment opens right above the declaration. Javadocs are written in
Markdown, with the usual IDE support: completion, links, @param names and so on.
Annotater requires class references to be fully qualified, such as [net.minecraft.util.Mth], so completion inserts the
full name, and a warning flags any short name.

Click Finish editing in the banner or press Escape when you’re done. Changes are saved to the annotater checkout
automatically; to remove a Javadoc, delete all of its text.
Opening a Pull Request
This needs the automatic clone mode, the GitHub plugin, and a GitHub.com account logged in under
Settings > Version Control > GitHub.
Click Create Pull Request... in the banner.

Pick the account, and fill in the title, description and commit message. Leave Check the build first ticked: it runs
annotater’s checks before anything is pushed, which can take a minute or two. Minecraft Dev then forks annotater to your
account if needed, pushes your changes, and opens the pull request.

If you make more changes to the same contribution later, the banner offers Update Pull Request... instead, which pushes
them to the same pull request. While a contribution has a pull request, the banner shows its number, with a link to
open it. The banner also turns yellow to warn you to start a new contribution for new changes.
Contributions
With the automatic clone mode, each contribution is a separate branch with its own pull request. Use the dropdown at the right of the banner to manage them:
- New contribution starts a fresh branch. Do this for each unrelated set of changes, so each pull request stays focused.
- Click a contribution to switch to it. Uncommitted changes are committed to the current contribution first.
- Delete Contribution deletes it locally. Its branch on GitHub and its pull request are kept.
- Configure Annotater opens the settings.

Check which contribution you’re on before you start editing. Switching commits your changes to the contribution you were on, so they can’t be moved to another one afterwards.