Class DialogManager

java.lang.Object
org.woftnw.eof.DialogManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class DialogManager extends Object implements org.bukkit.event.Listener
Manages Dialogs.
  • Field Details

  • Constructor Details

    • DialogManager

      public DialogManager(@NonNull ElytrasOfFire plugin)
      Create a new DialogManager. There should only be one instance that belongs to the ElytrasOfFire plugin.
      Parameters:
      plugin - The ElytrasOfFire plugin instance.
  • Method Details

    • getUserSettingsDialog

      public @NonNull io.papermc.paper.dialog.Dialog getUserSettingsDialog(org.bukkit.entity.Player player)
      Get the user settings dialog for a given Player.
      Parameters:
      player - The player whose user settings dialog to get.
      Returns:
      The user settings Dialog for the player.
    • getAbilitySlotMenu

      public org.bukkit.inventory.InventoryView getAbilitySlotMenu(org.bukkit.entity.Player player) throws NoTribeException
      Throws:
      NoTribeException
    • isAbilitySlotMenu

      public static boolean isAbilitySlotMenu(@NonNull org.bukkit.inventory.InventoryView inventoryView)
    • onInventoryClick

      public void onInventoryClick(@NonNull org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryClose

      public void onInventoryClose(@NonNull org.bukkit.event.inventory.InventoryCloseEvent event)
    • onDialogSubmit

      public void onDialogSubmit(@NonNull io.papermc.paper.event.player.PlayerCustomClickEvent event)