Interface EnderChestInventory
- All Superinterfaces:
Container
A player's ender chest, shared by every ender chest block they open.
It always holds 54 slots, those of 6 rows, but a player only sees
the first Player.enderChestRows() rows of it. What happens to the items of the rows a
player no longer sees, kept hidden until they see them again or cleared when they open their
ender chest, is up to the server configuration.
Choosing the rows of an ender chest by permission is inspired by Purpur.
- Since:
- 0.1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe rows of a vanilla ender chest.static final intThe most rows a player can see in their ender chest.static final intThe number of slots of one row.static final intThe number of slots of an ender chest, those of 6 rows, seen or not. -
Method Summary
Methods inherited from interface Container
clear, contents, firstEmpty, get, isEmpty, set, setContents, size
-
Field Details
-
ROW_SIZE
static final int ROW_SIZEThe number of slots of one row.- Since:
- 0.1.0
- See Also:
-
MAX_ROWS
static final int MAX_ROWSThe most rows a player can see in their ender chest.- Since:
- 0.1.0
- See Also:
-
DEFAULT_ROWS
static final int DEFAULT_ROWSThe rows of a vanilla ender chest.- Since:
- 0.1.0
- See Also:
-
SIZE
static final int SIZEThe number of slots of an ender chest, those of 6 rows, seen or not.- Since:
- 0.1.0
- See Also:
-