animTable[$this->anim + $offset] ?? 0; } /** @param int[]|null $table */ public function setAnimation(?array $table, int $index = 0): void { $this->animTable = $table; $this->anim = $index; } }