Resource icon

FormAPI 2.2

terentev

Member
qPexLegendary submitted a new resource:

FormAPI - Simple library for creating forms

Simple library for creating forms (MCBE Nukkit).



SimpleForm
Java:
SimpleForm form = new SimpleForm("Test simple form")
    .setContent("Sample text")
    .addButton("Just a button")
    .addButton("Button with diamond", ImageType.PATH, "textures/items/diamond");

form.send(player, (targetPlayer, targetForm, data) -> {
    if(data == -1) return;
    
    targetPlayer.sendMessage(data.toString());
});

CustomForm
Java:
CustomForm form = new CustomForm()...
Read more about this resource...
 

terentev

Member
Why?? Just why???
Nukkit has a build-in and simple form api. Why would we need this kind of plugin??
Because here you can immediately specify the processing of the form using a lambda. This is more convenient than trying to catch some form and somehow identify it. Also my friends liked this thing
 
Top