Class NPCExpressionScope

java.lang.Object
net.citizensnpcs.npc.ai.tree.NPCExpressionScope

public class NPCExpressionScope extends Object
Factory for creating expression scopes with NPC-related bindings.
  • Constructor Details

    • NPCExpressionScope

      public NPCExpressionScope()
  • Method Details

    • createFor

      public static ExpressionScope createFor(NPC npc)
      Creates an expression scope with lazy bindings for NPC properties.
      Parameters:
      npc - the NPC to bind
      Returns:
      a scope with NPC bindings