public interface IInventory extends IClearable
Modifier and Type | Method and Description |
---|---|
default void |
closeInventory(PlayerEntity player) |
default int |
count(Item itemIn) |
ItemStack |
decrStackSize(int index,
int count) |
default int |
getInventoryStackLimit() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int index) |
default boolean |
hasAny(java.util.Set<Item> set) |
boolean |
isEmpty() |
default boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUsableByPlayer(PlayerEntity player) |
void |
markDirty() |
default void |
openInventory(PlayerEntity player) |
ItemStack |
removeStackFromSlot(int index) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
clear, clearObj
int getSizeInventory()
boolean isEmpty()
ItemStack getStackInSlot(int index)
ItemStack decrStackSize(int index, int count)
ItemStack removeStackFromSlot(int index)
void setInventorySlotContents(int index, ItemStack stack)
default int getInventoryStackLimit()
void markDirty()
boolean isUsableByPlayer(PlayerEntity player)
default void openInventory(PlayerEntity player)
default void closeInventory(PlayerEntity player)
default boolean isItemValidForSlot(int index, ItemStack stack)
default int count(Item itemIn)
default boolean hasAny(java.util.Set<Item> set)