How can I create a FormUI?

CreeperFace

🇨🇿🇺🇦 Слава Україні!
Staff member
Maybe this package will help you https://github.com/NukkitX/Nukkit/tree/master/src/main/java/cn/nukkit/form

You need FormWindow instance, there are 3 types of windows si it's up to you which one you'll choose. And then use the method player.showFormWindow(window, id);
ID is optional parameter to force set the window ID, which means that you will have to listen for response event with this ID. Otherwise this method returns window ID, so you can save it and check it later.
 

TheLondiux

New Member
Maybe this package will help you https://github.com/NukkitX/Nukkit/tree/master/src/main/java/cn/nukkit/form

You need FormWindow instance, there are 3 types of windows si it's up to you which one you'll choose. And then use the method player.showFormWindow(window, id);
ID is optional parameter to force set the window ID, which means that you will have to listen for response event with this ID. Otherwise this method returns window ID, so you can save it and check it later.
I don't know how to create a nukkit plugin o_O
 
Top