The `TileMap.translatePath` method must be static