InventoryView QOL open method (#12282)
* Add QOL open method to InventoryView * Check to ensure the opening isn't a InventoryMenu, allow HorseMenus * Fix instanceof against API instaed of AbstractContainerMenu * [ci skip] Remove suggested comment
This commit is contained in:
@@ -242,6 +242,11 @@ public interface InventoryView {
|
||||
@NotNull
|
||||
public InventoryType.SlotType getSlotType(int slot);
|
||||
|
||||
/**
|
||||
* Opens the inventory view.
|
||||
*/
|
||||
void open();
|
||||
|
||||
/**
|
||||
* Closes the inventory view.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user