Package net.neoforged.elc.configs
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 specificLaunchGroup.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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAction(LaunchGroup.Action.ActionType type, @Nullable EValue<?> param) Creates an instance of aActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidbakeAttributes(List<EAttribute> attributes) static LaunchGroup.Actiondelay(int delay) The thread controlling the Launch Group will sleep for the specified number of seconds.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static LaunchGroup.Actionnone()Performs no action.static LaunchGroup.ActionoutputRegexp(String regex) The thread controlling the Launch Group will await a response from the entry that matches the specified regular expression.@Nullable EValue<?>param()Returns the value of theparamrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.static LaunchGroup.ActionThe thread controlling the Launch Group will sleep until the current entry has completed execution.
-
Field Details
-
NONE
-
-
Constructor Details
-
Method Details
-
bakeAttributes
-
none
Performs no 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
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
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
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
param
Returns the value of theparamrecord component.- Returns:
- the value of the
paramrecord component
-