Class GuiScreen

  • All Implemented Interfaces:
    org.bukkit.event.Listener

    public abstract class GuiScreen
    extends java.lang.Object
    implements org.bukkit.event.Listener
    • Constructor Summary

      Constructors 
      Constructor Description
      GuiScreen​(int id, int size, boolean update)  
    • Method Summary

      Modifier and Type Method Description
      void addItem​(org.bukkit.inventory.ItemStack item)  
      void clearInventory()  
      void close()  
      abstract void drawScreen()  
      int getId()  
      org.bukkit.inventory.Inventory getInventory()  
      org.bukkit.entity.Player getPlayer()  
      boolean isUpdate()  
      abstract void onClick​(org.bukkit.inventory.ItemStack item, org.bukkit.event.inventory.InventoryClickEvent event)  
      abstract void onClose()  
      abstract void onOpen()  
      void onPlayerInventory​(org.bukkit.event.inventory.InventoryClickEvent event)  
      void onPlayerInventory​(org.bukkit.event.inventory.InventoryCloseEvent e)  
      void open​(fr.royalpha.sheepwars.core.SheepWarsPlugin plugin, org.bukkit.entity.Player player, java.lang.String inventoryName)  
      void setFont​(org.bukkit.inventory.ItemStack item)  
      void setItem​(org.bukkit.inventory.ItemStack item, int slot)  
      void setItem​(org.bukkit.inventory.ItemStack item, int line, int colomn)  
      void setItemLine​(org.bukkit.inventory.ItemStack item, int line)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        public int id
      • size

        public int size
      • update

        public boolean update
      • inventory

        public org.bukkit.inventory.Inventory inventory
      • player

        public org.bukkit.entity.Player player
      • plugin

        public fr.royalpha.sheepwars.core.SheepWarsPlugin plugin
    • Constructor Detail

      • GuiScreen

        public GuiScreen​(int id,
                         int size,
                         boolean update)
    • Method Detail

      • getId

        public int getId()
      • getPlayer

        public org.bukkit.entity.Player getPlayer()
      • isUpdate

        public boolean isUpdate()
      • open

        public void open​(fr.royalpha.sheepwars.core.SheepWarsPlugin plugin,
                         org.bukkit.entity.Player player,
                         java.lang.String inventoryName)
      • close

        public void close()
      • getInventory

        public org.bukkit.inventory.Inventory getInventory()
      • setItem

        public void setItem​(org.bukkit.inventory.ItemStack item,
                            int slot)
      • addItem

        public void addItem​(org.bukkit.inventory.ItemStack item)
      • setItem

        public void setItem​(org.bukkit.inventory.ItemStack item,
                            int line,
                            int colomn)
      • setItemLine

        public void setItemLine​(org.bukkit.inventory.ItemStack item,
                                int line)
      • clearInventory

        public void clearInventory()
      • setFont

        public void setFont​(org.bukkit.inventory.ItemStack item)
      • onPlayerInventory

        public void onPlayerInventory​(org.bukkit.event.inventory.InventoryClickEvent event)
      • drawScreen

        public abstract void drawScreen()
      • onOpen

        public abstract void onOpen()
      • onClose

        public abstract void onClose()
      • onClick

        public abstract void onClick​(org.bukkit.inventory.ItemStack item,
                                     org.bukkit.event.inventory.InventoryClickEvent event)
      • onPlayerInventory

        public void onPlayerInventory​(org.bukkit.event.inventory.InventoryCloseEvent e)