> For the complete documentation index, see [llms.txt](https://maya-bee.gitbook.io/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maya-bee.gitbook.io/api-docs/reference/documentation/submodules/entitydata.md).

# EntityData

Store data tied to entities cleanly without using :GetData(), a method which is accessible globally.

## Summary

<table><thead><tr><th width="119">Type</th><th>Function</th></tr></thead><tbody><tr><td>Function</td><td><code>table</code> GetData(<code>Entity</code> entity)</td></tr><tr><td>Function</td><td><code>void</code> RemoveData(<code>Entity</code> entity)</td></tr><tr><td>Function</td><td><code>void</code> Clean()</td></tr></tbody></table>

## Methods

### GetData()

`table GetData(Entity entity)`

Returns a mutable table that is tied to `entity`.

### RemoveData()

`void RemoveData(Entity entity)`

Removes the mutable table tied to `entity` returned by `GetData()` from memory.

### Clean()

`void Clean()`

Clears any mutable tables tied to `Entity` objects that no longer exist.
