Enum Class PortType

java.lang.Object
java.lang.Enum<PortType>
com.soulfiremc.server.script.PortType
All Implemented Interfaces:
Serializable, Comparable<PortType>, Constable

public enum PortType extends Enum<PortType>
The data type of a node port. Used for connection validation and UI rendering.
  • Enum Constant Details

    • ANY

      public static final PortType ANY
      Any type - accepts all values.
    • NUMBER

      public static final PortType NUMBER
      Numeric value (integer or floating point).
    • STRING

      public static final PortType STRING
      Text string value.
    • BOOLEAN

      public static final PortType BOOLEAN
      Boolean true/false value.
    • VECTOR3

      public static final PortType VECTOR3
      3D vector with x, y, z components.
    • BOT

      public static final PortType BOT
      Reference to a bot connection.
    • LIST

      public static final PortType LIST
      List/array of values.
    • EXEC

      public static final PortType EXEC
      Execution flow port (not data).
    • BLOCK

      public static final PortType BLOCK
      Block type identifier.
    • ENTITY

      public static final PortType ENTITY
      Entity reference.
    • ITEM

      public static final PortType ITEM
      Item stack reference.
  • Method Details

    • values

      public static PortType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PortType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null