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