Record Class LaunchGroup.Action

java.lang.Object
java.lang.Record
net.neoforged.elc.configs.LaunchGroup.Action
Record Components:
type - The type of action being taken.
param - Additional data passed to specific LaunchGroup.Action.ActionTypes.
Enclosing class:
LaunchGroup

@Desugar public static record LaunchGroup.Action(LaunchGroup.Action.ActionType type, @Nullable EValue<?> param) extends Record
Represents a post-launch action for a Launch Group entry.
  • Field Details

  • Constructor Details

    • Action

      public Action(LaunchGroup.Action.ActionType type, @Nullable @Nullable EValue<?> param)
      Creates an instance of a Action record class.
      Parameters:
      type - the value for the type record component
      param - the value for the param record component
  • Method Details

    • bakeAttributes

      public void bakeAttributes(List<EAttribute> attributes)
    • none

      public static LaunchGroup.Action none()
      Performs no action.
    • waitForTermination

      public static LaunchGroup.Action waitForTermination()
      The thread controlling the Launch Group will sleep until the current entry has completed execution.
      API Note:
      Eclipse never considers GradleLaunchConfigs as terminated, and will stall indefinitely.
    • delay

      public static LaunchGroup.Action delay(int delay)
      The thread controlling the Launch Group will sleep for the specified number of seconds.
      Parameters:
      delay - The delay, in seconds, that the thread will sleep for.
    • outputRegexp

      public static LaunchGroup.Action outputRegexp(String regex)
      The thread controlling the Launch Group will await a response from the entry that matches the specified regular expression.
      Parameters:
      regex - The regular expression that will be matched against the output of the launch group entry.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • param

      @Nullable public @Nullable EValue<?> param()
      Returns the value of the param record component.
      Returns:
      the value of the param record component