# Type namespaces

JavaScript and Python scripts get these globals automatically. They are read-only aliases of real Java types, so `instanceof` and `isinstance` work without a package name. They do not change which helper a factory returns; check the object you actually received.

| Namespace | What it is | Types |
| --- | --- | --- |
| [EntityHelpers](./EntityHelpers.md) | Lets scripts identify entity helpers through the EntityHelpers global, without knowing their Java package names. | 80 |
| [HitResults](./HitResults.md) | Lets scripts distinguish block and entity targeting results through the HitResults global. | 3 |
| [Inventories](./Inventories.md) | Lets scripts identify inventory wrappers through the Inventories global, instead of matching screen-name strings. | 18 |
| [NBTHelpers](./NBTHelpers.md) | Lets scripts distinguish numbers, lists, and compounds in NBT data through the NBTHelpers global. | 4 |
| [RenderElements](./RenderElements.md) | Lets scripts identify 2D and 3D drawing elements through the RenderElements global. | 14 |
| [ScriptClasses](./ScriptClasses.md) | Gives scripts access to image creation and key-tracking utilities through the ScriptClasses global. | 2 |
| [Widgets](./Widgets.md) | Lets scripts identify buttons, sliders, and other widget helpers through the Widgets global. | 7 |

