Interface Chest

    • Method Detail

      • doubleChestInventory

        java.util.Optional<Inventory> doubleChestInventory()
        Returns the inventory representing the combination of this chest and its neighbor (which form a double chest), if available.

        If this chest is not part of a double chest, then this method will return Optional.empty().

        Returns:
        The combined inventory, if available
      • connectedChest

        java.util.Optional<Chest> connectedChest()
        Returns the connected Chest, if available.

        If this chest is not part of a double chest, then this method will return Optional.empty().

        Returns:
        The connected Chest, if available