tutorial:extendedscreenhandler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:extendedscreenhandler [2022/05/27 15:59] – external edit 127.0.0.1 | tutorial:extendedscreenhandler [2022/12/17 15:38] (current) – [Registering our ScreenHandler] registry (f***) miir | ||
---|---|---|---|
Line 157: | Line 157: | ||
[...] | [...] | ||
- | public static final ScreenHandlerType< | + | public static final ScreenHandlerType< |
static { | static { | ||
Line 163: | Line 163: | ||
//we now use registerExtended as our screenHandler now accepts a packetByteBuf in its Constructor | //we now use registerExtended as our screenHandler now accepts a packetByteBuf in its Constructor | ||
- | BOX_SCREEN_HANDLER = ScreenHandlerRegistry.registerExtended(BOX, BoxScreenHandler:: | + | BOX_SCREEN_HANDLER = Registry.register(Registries.SCREEN_HANDLER, new Identifier(" |
} | } | ||
tutorial/extendedscreenhandler.txt · Last modified: 2022/12/17 15:38 by miir