Class DialogManager
java.lang.Object
org.woftnw.eof.DialogManager
- All Implemented Interfaces:
org.bukkit.event.Listener
Manages Dialogs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.InventoryViewgetAbilitySlotMenu(org.bukkit.entity.Player player) @NonNull io.papermc.paper.dialog.DialoggetUserSettingsDialog(org.bukkit.entity.Player player) Get the user settings dialog for a givenPlayer.static booleanisAbilitySlotMenu(@NonNull org.bukkit.inventory.InventoryView inventoryView) voidonDialogSubmit(@NonNull io.papermc.paper.event.player.PlayerCustomClickEvent event) voidonInventoryClick(@NonNull org.bukkit.event.inventory.InventoryClickEvent event) voidonInventoryClose(@NonNull org.bukkit.event.inventory.InventoryCloseEvent event)
-
Field Details
-
ABILITY_SLOT_MENU_HOVER_TEXT
- See Also:
-
-
Constructor Details
-
DialogManager
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 givenPlayer.- 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)
-