private function moveIfRail()
{
$nextMoveVector = $this->moveVector[$this->direction];
$nextMoveVector = $nextMoveVector->multiply($this->moveSpeed);
$newVector = $this->add($nextMoveVector->x, $nextMoveVector->y, $nextMoveVector->z);
$possibleRail = $this->getCurrentRail();
if (in_array($possibleRail->getId(), [Block::RAIL, Block::ACTIVATOR_RAIL, Block::DETECTOR_RAIL, Block::POWERED_RAIL])) {
$this->moveUsingVector($newVector);
return true;
}
}