Class ScriptGraph.Builder
java.lang.Object
com.soulfiremc.server.script.ScriptGraph.Builder
- Enclosing class:
ScriptGraph
Builder for constructing ScriptGraph instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddDataEdge(String sourceNodeId, String sourceHandle, String targetNodeId, String targetHandle) Adds a data edge between nodes.addEdge(ScriptGraph.GraphEdge edge) Adds an edge to the graph.addExecutionEdge(String sourceNodeId, String sourceHandle, String targetNodeId, String targetHandle) Adds an execution edge between nodes.addNode(ScriptGraph.GraphNode node) Adds a node to the graph.Adds a node to the graph.build()Builds the ScriptGraph.
-
Method Details
-
addNode
Adds a node to the graph. -
addNode
-
addEdge
Adds an edge to the graph. -
addExecutionEdge
public ScriptGraph.Builder addExecutionEdge(String sourceNodeId, String sourceHandle, String targetNodeId, String targetHandle) Adds an execution edge between nodes. -
addDataEdge
public ScriptGraph.Builder addDataEdge(String sourceNodeId, String sourceHandle, String targetNodeId, String targetHandle) Adds a data edge between nodes. -
build
Builds the ScriptGraph.
-