Package net.citizensnpcs.npc.ai.tree
Class NPCExpressionContext
java.lang.Object
net.citizensnpcs.npc.ai.tree.NPCExpressionContext
Factory for creating expression scopes with NPC-related bindings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionScopecreateChild(ExpressionScope parent) Creates a child scope with additional custom variables.static ExpressionScopeCreates an expression scope with lazy bindings for NPC properties.
-
Constructor Details
-
NPCExpressionContext
public NPCExpressionContext()
-
-
Method Details
-
createChild
Creates a child scope with additional custom variables.- Parameters:
parent- the parent scope- Returns:
- a child scope
-
createFor
Creates an expression scope with lazy bindings for NPC properties.- Parameters:
npc- the NPC to bind- Returns:
- a scope with NPC bindings
-