Class AbstractView
java.lang.Object
ru.cwcode.tkach.refreshmenu.inventory.view.AbstractView
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.bukkit.inventory.Inventoryprotected Menu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonDrag(org.bukkit.event.inventory.InventoryDragEvent event) voidonDrag(ru.cwcode.cwutils.event.DragType dragType, org.bukkit.event.inventory.InventoryDragEvent event) voidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) booleanonInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) voidonOutsideClick(org.bukkit.event.inventory.InventoryClickEvent event) voidonOwnInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) voidopen(org.bukkit.entity.Player player) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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) -
onDrag
public void onDrag(ru.cwcode.cwutils.event.DragType dragType, 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)
-