Class ReadOnlyInventoryHolder
java.lang.Object
org.mvplugins.multiverse.inventories.view.ReadOnlyInventoryHolder
- All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder
@Experimental
@AvailableSince("5.2")
public final class ReadOnlyInventoryHolder
extends Object
implements org.bukkit.inventory.InventoryHolder
A custom InventoryHolder that serves as a marker for read-only inventories.
Inventories created with this holder will have their interactions cancelled by the InventoryViewListener.
- Since:
- 5.2
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReadOnlyInventoryHolder
public ReadOnlyInventoryHolder()
-
-
Method Details
-
getInventory
@NotNull public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-