Interface Container
- All Known Implementing Classes:
EnderChestInventory, PlayerInventory
public interface Container
-
Method Details
-
size
int size()Number of slots exposed by this container. -
get
Returns the contents of the requested slot, nevernull.- Throws:
IndexOutOfBoundsException- if the slot is out of bounds
-
set
Replaces the contents of a slot. Anullis normalized toItemStack.EMPTY.- Throws:
IndexOutOfBoundsException- if the slot is out of bounds
-
clear
void clear()Clears every slot. -
isEmpty
boolean isEmpty()trueif every slot is empty.
-