Package net.neoforged.elc.configs
Record Class LaunchGroup.Entry
java.lang.Object
java.lang.Record
net.neoforged.elc.configs.LaunchGroup.Entry
- Record Components:
index- The index of the entry in the Launch Groupname- The name of the launch configuration that will be executed by this entry.enabled- If this entry is enabled, and will be executed when the Launch Group is run.adoptIfRunning- If true, the currently executing instance will be adopted to the executed config.mode- The execution mode. SeeLaunchGroup.Mode.action- The post-launch action. SeeLaunchGroup.Action.
- Enclosing class:
- LaunchGroup
@Desugar
public static record LaunchGroup.Entry(int index, String name, boolean enabled, boolean adoptIfRunning, LaunchGroup.Mode mode, LaunchGroup.Action action)
extends Record
Represents a single launch group entry, which are parameters on how to execute an external
LaunchConfig.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEntry(int index, String name, boolean enabled, boolean adoptIfRunning, LaunchGroup.Mode mode, LaunchGroup.Action action) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.booleanReturns the value of theadoptIfRunningrecord component.voidbakeAttributes(List<EAttribute> attributes) static LaunchGroup.Entry.Builderbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.mode()Returns the value of themoderecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(int index, String name, boolean enabled, boolean adoptIfRunning, LaunchGroup.Mode mode, LaunchGroup.Action action) Creates an instance of aEntryrecord class.- Parameters:
index- the value for theindexrecord componentname- the value for thenamerecord componentenabled- the value for theenabledrecord componentadoptIfRunning- the value for theadoptIfRunningrecord componentmode- the value for themoderecord componentaction- the value for theactionrecord component
-
-
Method Details
-
bakeAttributes
-
builder
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
adoptIfRunning
public boolean adoptIfRunning()Returns the value of theadoptIfRunningrecord component.- Returns:
- the value of the
adoptIfRunningrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-