Class StandardButtons
java.lang.Object
com.github.pinont.singularitylib.api.ui.StandardButtons
Factory for common menu buttons (back, close, filler, confirm, cancel).
Removes the need to hand-roll identical buttons across every plugin menu.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ButtonA button that re-opens the given parent menu when clicked.static Buttoncancel(org.bukkit.plugin.Plugin plugin, org.bukkit.Material material, String label, Runnable action) A cancel-style button that runs the given action on click.static Buttonclose(org.bukkit.plugin.Plugin plugin) A button that closes the open inventory.static Buttonconfirm(org.bukkit.plugin.Plugin plugin, org.bukkit.Material material, String label, Runnable action) A confirmation-style button that runs the given action on click.static Buttonfiller(org.bukkit.plugin.Plugin plugin, org.bukkit.Material material) A non-interactive filler item (e.g.
-
Method Details
-
back
-
close
A button that closes the open inventory. -
filler
A non-interactive filler item (e.g. stained glass pane) for decorative slots. -
confirm
-
cancel
-