Class MenuHolder
java.lang.Object
com.kamikazejam.kamicommon.menu.api.MenuHolder
- All Implemented Interfaces:
InventoryHolder
- Direct Known Subclasses:
AbstractMenu
InventoryHolder with constructor parameters for making an Inventory with either a row count or an InventoryType.
Also contains a few utility methods for better utilization with the KamiCommon library.
Also contains a few utility methods for better utilization with the KamiCommon library.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
void
boolean
int
int
firstEmpty
(int[] slots) int
firstEmpty
(@NotNull Collection<Integer> slots) @NotNull InventoryHolder
@NotNull Inventory
@Nullable ItemStack
getItem
(int slot) @NotNull MenuSize
@Nullable Inventory
int
getSize()
@NotNull List
<HumanEntity> int
hashCode()
void
replaceTitle
(@NotNull String find, @NotNull String replacement) void
setItem
(int slot, @Nullable ItemBuilder builder) void
-
Field Details
-
inventory
-
title
-
size
-
-
Constructor Details
-
Method Details
-
getInventory
- Specified by:
getInventory
in interfaceInventoryHolder
-
deleteInventory
public void deleteInventory() -
getRawInventory
-
closeAll
-
getViewers
-
getHolder
-
getSize
public int getSize() -
getMenuSize
-
getItem
-
setItem
-
setItem
-
clear
public void clear() -
firstEmpty
public int firstEmpty() -
firstEmpty
-
firstEmpty
public int firstEmpty(int[] slots) -
replaceTitle
-
equals
-
hashCode
public int hashCode()
-