public final class InventoryMonitor extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryMonitor.Entry
An entry which has been changed.
|
| Constructor and Description |
|---|
InventoryMonitor(org.bukkit.inventory.InventoryView view)
Create a new monitor for the given inventory view.
|
| Modifier and Type | Method and Description |
|---|---|
List<InventoryMonitor.Entry> |
getChanges()
Check for changes in the inventory view.
|
org.bukkit.inventory.ItemStack[] |
getContents()
Get the current contents of the viewed inventory.
|
int |
getId()
The network ID of this inventory view.
|
int |
getSize()
Get the number of slots in this inventory view.
|
String |
getType()
Get the network type ID of this inventory view.
|
public InventoryMonitor(org.bukkit.inventory.InventoryView view)
view - The view to monitor.public List<InventoryMonitor.Entry> getChanges()
public org.bukkit.inventory.ItemStack[] getContents()
public int getSize()
public int getId()
public String getType()
Copyright © 2021. All rights reserved.