com.hypixel.hytale.server.npc.util.expression
Package: com.hypixel.hytale.server.npc.util.expression
Runtime expression evaluator used by the NPC behavior system. Expressions in NPC role JSON assets (e.g. dynamic numeric or boolean values) are compiled into stack-based instruction sequences and executed against a Scope that provides variable bindings and functions. The system supports numbers, strings, booleans, and typed arrays, with a standard library of math and utility functions.
| Type | Kind | Description |
|---|---|---|
| Expression | class | Entry point for compiling and executing expression strings. |
| ExecutionContext | class | Stack-based virtual machine that executes compiled instruction sequences. |
| Scope | interface | Contract for variable and function providers used during compilation and execution. |
| StdScope | class | Symbol-table-backed scope implementation with parent chain resolution. |
| StdLib | class | Singleton standard library scope providing built-in constants and functions. |
| ValueType | enum | Discriminant for the eight value types the expression system supports. |
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.