public function create_inventory($name, $type = inventory::TYPE_GENERAL) { return inventory::create($name, $type, $this); }