Class LaunchGroup.Keys

java.lang.Object
net.neoforged.elc.configs.LaunchGroup.Keys
Enclosing class:
LaunchGroup

public static class LaunchGroup.Keys extends Object
Holds keys relevant to serialization of LaunchGroup.

Because most of the keys require inserting an index into them, this class holds methods instead of constants.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    action(int index)
    Defines the name of the post-launch action to take after the configuration at this index has launched, but before the next index has launched.
    static String
    actionParam(int index)
    Defines the action parameter, based on the set action.
    static String
    adoptIfRunning(int index)
    Defines if the launch group entry should use a currently executing instance, if one exists.
    static String
    enabled(int index)
    Defines if the launch group entry at this index is enabled and should be run.
    static String
    mode(int index)
    Defines the execution mode for the launch configuration at this index.
    static String
    name(int index)
    Defines the name of the launch configuration that will be run for this index.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Keys

      public Keys()
  • Method Details

    • name

      public static String name(int index)
      Defines the name of the launch configuration that will be run for this index.

      E-Attribute Type: String
      Required: True

    • enabled

      public static String enabled(int index)
      Defines if the launch group entry at this index is enabled and should be run.

      E-Attribute Type: Boolean
      Required: True

    • adoptIfRunning

      public static String adoptIfRunning(int index)
      Defines if the launch group entry should use a currently executing instance, if one exists.

      E-Attribute Type: Boolean
      Required: False
      Default Value: False

    • mode

      public static String mode(int index)
      Defines the execution mode for the launch configuration at this index.

      E-Attribute Type: String
      Required: True

    • action

      public static String action(int index)
      Defines the name of the post-launch action to take after the configuration at this index has launched, but before the next index has launched.

      E-Attribute Type: String
      Required: False
      Default Value: LaunchGroup.Action.NONE

    • actionParam

      public static String actionParam(int index)
      Defines the action parameter, based on the set action.