Auto generate a simple Config Screen

This commit is contained in:
Frank 2021-08-20 14:37:40 +02:00
parent d31425623d
commit 092e0a39e8
3 changed files with 33 additions and 6 deletions

View file

@ -53,13 +53,13 @@ class ModMenuScreenFactoryImpl {
* the {@link #createEntrypoint(ModMenuIntegration)}-Method.
* <p>
* Example:
* <pre>{@code public class} ModMenu extends ModMenuIntegration {
* <pre>{@code public class ModMenu extends ModMenuIntegration {
* public static final ModMenuApiMarker entrypointObject = createEntrypoint(new EntryPoint());
*
* public EntryPoint() {
* super(GridScreen::new);
* }
* }</pre>
* }}</pre>
* You'd also need to add the ModMenu-Entrypoint to your <i>fabric.mod.json</i>:
* <pre>"entrypoints": {
* ...