Class InventoryController
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.ui.InventoryController
- All Implemented Interfaces:
org.bukkit.event.Listener
- Author:
- RoinujNosde
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRegistered(@NotNull org.bukkit.entity.Player player) Checks if the Player is registeredvoidonClose(org.bukkit.event.inventory.InventoryCloseEvent event) voidonInteract(org.bukkit.event.inventory.InventoryClickEvent event) static voidRegisters the frame in the InventoryControllerstatic voidrunSubcommand(@NotNull org.bukkit.entity.Player player, @NotNull String subcommand, boolean update, String... args) Runs a subcommand for the Player
-
Constructor Details
-
InventoryController
public InventoryController()
-
-
Method Details
-
onClose
public void onClose(org.bukkit.event.inventory.InventoryCloseEvent event) -
onInteract
public void onInteract(org.bukkit.event.inventory.InventoryClickEvent event) -
register
Registers the frame in the InventoryController- Parameters:
frame- the frameauthor: RoinujNosde
-
isRegistered
public static boolean isRegistered(@NotNull @NotNull org.bukkit.entity.Player player) Checks if the Player is registered- Parameters:
player- the Player- Returns:
- if they are registered
-
runSubcommand
public static void runSubcommand(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull String subcommand, boolean update, String... args) Runs a subcommand for the Player- Parameters:
player- the Playersubcommand- the subcommandupdate- whether to update the inventory instead of closingauthor: RoinujNosde
-