setHealth(PHP_INT_MAX, "generic"); } public function isPickable(){ return !$this->dead; } public function interactWith(Entity $e, $action){ if($e->isPlayer() and $action === InteractPacket::ACTION_HOLD){ //todo $this->server->schedule(40, [$this, "close"]); } parent::interactWith($e, $action); } }