An entity cell is a live view of one entity in the world registry. You get one from world.getEntity(handle) when you already know the entity you want to inspect.

Unlike a query, an entity cell is centered on one handle. It reads the entity’s current location in the world’s storage, so it is good for targeted inspection without scanning the whole registry.

What It Exposes

An entity cell gives you direct access to the entity’s current state:

const player = world.spawn([new Position(0, 0), new Velocity(1, 0)])
const cell = world.getEntity(player)

if (cell.exists()) {
  const position = cell.get(Position)
  const velocity = cell.get(Velocity)

  position.x += velocity.x
  position.y += velocity.y
}

The cell is a read-friendly wrapper, not a replacement for the world. It is best used when you already have the handle and want to confirm state, inspect a few components, or branch on membership.

How It Differs From A Query

A query is for many matching entities. An entity cell is for one specific entity.

For write-heavy work, go back to World or stage the change through Commands instead of trying to treat the cell like a mutation API.