Package ch.njol.skript.bukkitutil
Class InventoryUtils
java.lang.Object
ch.njol.skript.bukkitutil.InventoryUtils
Utilities for inventories.
In newer versions (1.21+), InventoryView is an interface instead of an abstract class
Directing calling InventoryView#getTitle on 1.20.6 and below results in an IncompatibleClassChangeError
as an interface, not an abstract class, is expected.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Integer
convertSlot
(InventoryView inventoryView, int rawSlot) static @Nullable Inventory
getBottomInventory
(InventoryView inventoryView) static @Nullable Inventory
getInventory
(InventoryView inventoryView, int rawSlot) static @Nullable String
getTitle
(InventoryView inventoryView) static @Nullable Inventory
getTopInventory
(InventoryView inventoryView)
-
Constructor Details
-
InventoryUtils
public InventoryUtils()
-
-
Method Details
-
getTitle
- See Also:
-
getInventory
- See Also:
-
convertSlot
- See Also:
-
getTopInventory
- See Also:
-
getBottomInventory
- See Also:
-