mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
18 lines
No EOL
484 B
PHP
18 lines
No EOL
484 B
PHP
<?php
|
|
|
|
class TripodCamera extends Entity{
|
|
const TYPE = OBJECT_TRIPOD_CAMERA;
|
|
|
|
function __construct(Level $level, $eid, $class, $type = 0, $data = []){
|
|
parent::__construct($level, $eid, $class, $type, $data);
|
|
$this->setHealth(PHP_INT_MAX, "generic");
|
|
}
|
|
|
|
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);
|
|
}
|
|
} |