Class VGui

java.lang.Object
me.agent.vgui.api.VGui

public final class VGui extends Object
Static entry point to VGui. The instance is installed by the platform bootstrap (VGuiPlatform when running as a plugin, or VGuiBootstrap when shaded as a library) during proxy initialization.
View shop = VGui.chest(3)
    .title(Component.text("Shop"))
    .layout("#########",
            "#..a.b..#",
            "####c####")
    .map('#', ViewItem.of(filler))
    .map('a', ViewItem.clickable(sword, click -> buySword(click.player())))
    .map('c', ViewItem.closeButton(barrier))
    .build();

VGui.open(player, shop);