This shows you the differences between two versions of the page.
api:menus [2023/06/15 14:43] – created shedaniel | api:menus [2023/06/15 14:44] (current) – shedaniel | ||
---|---|---|---|
Line 51: | Line 51: | ||
</ | </ | ||
- | Once you've registered your '' | + | Once you've registered your '' |
First, let's define our custom screen class, which extends '' | First, let's define our custom screen class, which extends '' | ||
Line 64: | Line 64: | ||
</ | </ | ||
- | Next, we need to register our screen | + | Next, we need to register our screen, be sure to do this in a '' |
<code java> | <code java> | ||
MenuRegistry.registerScreenFactory(EXAMPLE_MENU_TYPE.get(), | MenuRegistry.registerScreenFactory(EXAMPLE_MENU_TYPE.get(), |