Skip to content

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.

NamespaceWhat it isTypes
EntityHelpersLets scripts identify entity helpers through the EntityHelpers global, without knowing their Java package names.80
HitResultsLets scripts distinguish block and entity targeting results through the HitResults global.3
InventoriesLets scripts identify inventory wrappers through the Inventories global, instead of matching screen-name strings.18
NBTHelpersLets scripts distinguish numbers, lists, and compounds in NBT data through the NBTHelpers global.4
RenderElementsLets scripts identify 2D and 3D drawing elements through the RenderElements global.14
ScriptClassesGives scripts access to image creation and key-tracking utilities through the ScriptClasses global.2
WidgetsLets scripts identify buttons, sliders, and other widget helpers through the Widgets global.7