Skip to content

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.

TypeKindDescription
ExpressionclassEntry point for compiling and executing expression strings.
ExecutionContextclassStack-based virtual machine that executes compiled instruction sequences.
ScopeinterfaceContract for variable and function providers used during compilation and execution.
StdScopeclassSymbol-table-backed scope implementation with parent chain resolution.
StdLibclassSingleton standard library scope providing built-in constants and functions.
ValueTypeenumDiscriminant 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.