@ParametersAreNonnullByDefault public interface Inventory
| Modifier and Type | Method and Description |
|---|---|
boolean |
addItem(ItemInstance item) |
void |
clearAll() |
void |
clearItem(int slot) |
ItemInstance[] |
getAllContents() |
int |
getEmptySlots() |
int |
getInventorySize() |
InventoryType |
getInventoryType() |
Optional<ItemInstance> |
getItem(int slot) |
void |
setAllContents(ItemInstance[] contents) |
void |
setItem(int slot,
ItemInstance item) |
Optional<ItemInstance> getItem(int slot)
void setItem(int slot,
@Nullable
ItemInstance item)
boolean addItem(ItemInstance item)
void clearItem(int slot)
int getEmptySlots()
void clearAll()
ItemInstance[] getAllContents()
void setAllContents(ItemInstance[] contents)
int getInventorySize()
InventoryType getInventoryType()
Copyright © 2017–2018 NukkitX. All rights reserved.