Interface ChestInventory
- All Superinterfaces:
BlockInventory, Container
The 27 slots of one chest block: a chest, a trapped chest or one of the copper chests, read from
and written to its block entity as
BlockInventory tells.
The name of either half names a large chest, the first half winning.
- Since:
- 0.1.0
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the large chest this chest is half of, empty while it stands alone.Methods inherited from interface BlockInventory
customName, lootTable, position, setCustomName, setLootTable, worldMethods inherited from interface Container
clear, contents, firstEmpty, get, isEmpty, set, setContents, size
-
Field Details
-
SIZE
static final int SIZEThe number of slots of one chest.- Since:
- 0.1.0
- See Also:
-
-
Method Details
-
doubleChest
Optional<DoubleChestInventory> doubleChest()Returns the large chest this chest is half of, empty while it stands alone.Two chests form a large chest when their block states point at each other, as
Chest.partnerDirection()tells.- Returns:
- the large chest this chest is half of, empty while it stands alone
- Since:
- 0.1.0
-