SimpleGUIs 1.0

A very simple GUI API that uses lambdas from Java 1.8

  1. BadBoy6767
    Tested Minecraft Versions:
    • 1.9
    • 1.10
    An API made to "easen" the "hardness" of creating a GUI in Spigot.

    Code (Java):
    SWInventory inv = SimpleGUIs.create(1, "Title"); // 1 = number of rows
    inv.setButton(4, 1, new ItemStack(Material.PAPER, 1), player -> {
       player.sendMessage("Test!");
    });
    // 4 = n'th column
    // 1 = n'th row
    // ItemStack = the item stack
    // player = Lambda function with an argument of Player and a return value of a boolean
    // only return true if the command worked

    //show this to a player
    inv.show(somePlayer);