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 portsmuted- 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.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
Creates an instance of aGraphNoderecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componentdefaultInputs- the value for thedefaultInputsrecord 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
-
muted
-