Class InventoryCache
java.lang.Object
com.zenith.cache.data.inventory.InventoryCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidcloseContainer(int containerId) booleanintlongit.unimi.dsi.fastutil.ints.Int2ObjectMap<Container> long@Nullable ItemStackintvoidvoidinthashCode()voidopenContainer(int containerId, ContainerType type, net.kyori.adventure.text.Component title) voidreset()setActiveContainerId(int activeContainerId) setContainerOpenedAt(long containerOpenedAt) voidsetInventory(int containerId, ItemStack[] inventory) voidsetItemStack(int containerId, int slot, ItemStack newItemStack) setLastContainerClick(long lastContainerClick) setMouseStack(@Nullable ItemStack mouseStack) toString()
-
Constructor Details
-
InventoryCache
public InventoryCache()
-
-
Method Details
-
getPlayerInventory
-
getOpenContainer
-
setInventory
-
setItemStack
-
closeContainer
public void closeContainer(int containerId) -
openContainer
public void openContainer(int containerId, ContainerType type, net.kyori.adventure.text.Component title) -
handleContainerClick
-
handleSetCreativeModeSlot
-
reset
public void reset() -
getContainers
-
getOpenContainerId
public int getOpenContainerId() -
getActiveContainerId
public int getActiveContainerId() -
getContainerOpenedAt
public long getContainerOpenedAt() -
getLastContainerClick
public long getLastContainerClick() -
getMouseStack
-
setActiveContainerId
- Returns:
this.
-
setContainerOpenedAt
- Returns:
this.
-
setLastContainerClick
- Returns:
this.
-
setMouseStack
- Returns:
this.
-
equals
-
canEqual
-
hashCode
-
toString
-