Class InventoryController

java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.ui.InventoryController
All Implemented Interfaces:
org.bukkit.event.Listener

public class InventoryController extends Object implements org.bukkit.event.Listener
Author:
RoinujNosde
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isRegistered(@NotNull org.bukkit.entity.Player player)
    Checks if the Player is registered
    void
    onClose(org.bukkit.event.inventory.InventoryCloseEvent event)
     
    void
    onInteract(org.bukkit.event.inventory.InventoryClickEvent event)
     
    static void
    register(@NotNull SCFrame frame)
    Registers the frame in the InventoryController
    static void
    runSubcommand(@NotNull org.bukkit.entity.Player player, @NotNull String subcommand, boolean update, String... args)
    Runs a subcommand for the Player

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void register(@NotNull @NotNull SCFrame frame)
      Registers the frame in the InventoryController
      Parameters:
      frame - the frame

      author: 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 Player
      subcommand - the subcommand
      update - whether to update the inventory instead of closing

      author: RoinujNosde