/**
  * Returns the current Team Fortress 2 inventory (a.k.a. backpack) of this
  * player
  *
  * @return TF2Inventory This player's TF2 backpack
  */
 public function getInventory()
 {
     if (!$this->isPublic()) {
         return null;
     }
     if (empty($this->inventory)) {
         $this->inventory = TF2Inventory::createInventory($this->user->getId());
     }
     return $this->inventory;
 }