Class AbstractView

java.lang.Object
ru.cwcode.tkach.refreshmenu.inventory.view.AbstractView
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
Direct Known Subclasses:
View

public class AbstractView extends Object implements org.bukkit.inventory.InventoryHolder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected org.bukkit.inventory.Inventory
     
    protected Menu
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDrag​(org.bukkit.event.inventory.InventoryDragEvent event)
     
    void
    onInventoryClick​(org.bukkit.event.inventory.InventoryClickEvent event)
     
    boolean
    onInventoryClose​(org.bukkit.event.inventory.InventoryCloseEvent event)
     
    void
    onOutsideClick​(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    onOwnInventoryClick​(org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    open​(org.bukkit.entity.Player player)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.inventory.InventoryHolder

    getInventory
  • Field Details

    • canCloseHimself

      protected boolean canCloseHimself
    • inventory

      protected transient org.bukkit.inventory.Inventory inventory
  • Constructor Details

    • AbstractView

      public AbstractView()
  • Method Details

    • onOutsideClick

      public void onOutsideClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onOwnInventoryClick

      public void onOwnInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onDrag

      public void onDrag(org.bukkit.event.inventory.InventoryDragEvent event)
    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryClose

      public boolean onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
      Returns:
      true if closed, false if re-opened
    • open

      public void open(org.bukkit.entity.Player player)