Interface ChestInventory

All Superinterfaces:
BlockInventory, Container

public interface ChestInventory extends BlockInventory
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 Details

    • SIZE

      static final int SIZE
      The number of slots of one chest.
      Since:
      0.1.0
      See Also:
  • Method Details

    • 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