Resource icon

Discontinued FormAPI 2.2

Compatible API Versions
1.0.9
Sourcecode
https://github.com/qPexLegendary/FormAPI
Contributors
C1oky
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()
    .addLabel("Sample text")
    .addDropDown("Sample dropdown", Arrays.asList("Line 1", "Line 2", "Line 3"))
    .addInput("Text area")
    .addSlider("Slider", 1, 100)
    .addStepSlider("Step slider", Arrays.asList("Step 1", "Step 2", "Step 3"))
    .addToggle("Just a toggle", false);

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

ModalForm
Java:
ModalForm form = new ModalForm("It`s a title", "Sample text", "Positive button", "Negative button");

form.send(player, (targetPlayer, targetForm, data) -> {
    if(data == -1) return;
   
    targetPlayer.sendMessage(data.toString());
});
  • Like
Reactions: Mar1mba
Author
terentev
Downloads
1,356
Views
2,744
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from terentev

Latest reviews

a good thing to create your own custom windows in the game.
Top