Class PrefixSelectGUI


  • public class PrefixSelectGUI
    extends cc.carm.lib.easyplugin.gui.paged.AutoPagedGUI
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected @Nullable String group  
      static HashSet<Player> openingUsers  
      protected Player player  
      • Fields inherited from class cc.carm.lib.easyplugin.gui.paged.AutoPagedGUI

        defaultNextPage, defaultPreviousPage, nextPageSlot, nextPageUI, noNextPageUI, noPreviousPageUI, previousPageSlot, previousPageUI
      • Fields inherited from class cc.carm.lib.easyplugin.gui.paged.CommonPagedGUI

        range
      • Fields inherited from class cc.carm.lib.easyplugin.gui.paged.PagedGUI

        container, page
      • Fields inherited from class cc.carm.lib.easyplugin.gui.GUI

        cancelOnOuter, cancelOnSelf, cancelOnTarget, emptyItem, flags, inv, items, listener, title, type
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void closeAll()  
      @Nullable String getGroup()  
      Player getPlayer()  
      void loadExtraIcons()  
      void loadItems()  
      void onClose()  
      static void open​(Player player)  
      static void open​(Player player, @Nullable String group)  
      static void removeOpening​(Player player)  
      • Methods inherited from class cc.carm.lib.easyplugin.gui.paged.AutoPagedGUI

        fillEmptySlots, openGUI, setNextPageSlot, setNextPageUI, setNoNextPageUI, setNoPreviousPageUI, setPreviousPageSlot, setPreviousPageUI
      • Methods inherited from class cc.carm.lib.easyplugin.gui.paged.CommonPagedGUI

        getFirstPageNumber, getLastPageNumber, goFirstPage, goLastPage, hasNextPage, hasPreviousPage
      • Methods inherited from class cc.carm.lib.easyplugin.gui.paged.PagedGUI

        addItem, addItem, addItemStack, getCurrentPage, getLastPageNumber, getPagedContainer, goNextPage, goPreviousPage, onPageChange, removeItem, removeItem, setCurrentPage
      • Methods inherited from class cc.carm.lib.easyplugin.gui.GUI

        applyToInventory, getFlag, getGUIName, getGUIType, getItem, getItems, getOpenedGUI, getOpenedGUIs, getPlugin, hasOpenedGUI, initialize, onDrag, onUpdate, rawClickListener, removeFlag, removeOpenedGUI, setCancelOnOuter, setCancelOnSelf, setCancelOnTarget, setEmptyItem, setFlag, setItem, setItem, setItem, setItemStack, setItemStack, setOpenedGUI, updateTitle, updateView
    • Field Detail

      • player

        protected final Player player
      • group

        @Nullable
        protected final @Nullable String group
    • Constructor Detail

      • PrefixSelectGUI

        public PrefixSelectGUI​(Player player)
      • PrefixSelectGUI

        public PrefixSelectGUI​(Player player,
                               @Nullable
                               @Nullable String group)
    • Method Detail

      • getPlayer

        public Player getPlayer()
      • getGroup

        @Nullable
        public @Nullable String getGroup()
      • loadExtraIcons

        public void loadExtraIcons()
      • loadItems

        public void loadItems()
      • onClose

        public void onClose()
        Overrides:
        onClose in class cc.carm.lib.easyplugin.gui.GUI
      • removeOpening

        public static void removeOpening​(Player player)
      • closeAll

        public static void closeAll()
      • open

        public static void open​(Player player)
      • open

        public static void open​(Player player,
                                @Nullable
                                @Nullable String group)