Record Class ScriptGraph.GraphNode
java.lang.Object
java.lang.Record
com.soulfiremc.server.script.ScriptGraph.GraphNode
- Record Components:
id- unique node identifiertype- node type identifier (e.g., "action.pathfind")defaultInputs- default values for input portsmultiInputPorts- set of port names that accept multiple connections (NOTE: the reactive engine does not yet implement multi-input collection)muted- whether the node is muted (bypassed during execution)
- Enclosing class:
ScriptGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultInputsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of themultiInputPortsrecord component.booleanmuted()Returns the value of themutedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
GraphNode
-
GraphNode
public GraphNode(String id, String type, @Nullable Map<String, Object> defaultInputs, @Nullable Set<String> multiInputPorts, boolean muted) Creates an instance of aGraphNoderecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentdefaultInputs- the value for thedefaultInputsrecord componentmultiInputPorts- the value for themultiInputPortsrecord componentmuted- the value for themutedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
type
-
defaultInputs
Returns the value of thedefaultInputsrecord component.- Returns:
- the value of the
defaultInputsrecord component
-
multiInputPorts
Returns the value of themultiInputPortsrecord component.- Returns:
- the value of the
multiInputPortsrecord component
-
muted
-