Enum Class EnvironmentSpec.PipelineStep

java.lang.Object
java.lang.Enum<EnvironmentSpec.PipelineStep>
net.fabricmc.loom.spec.EnvironmentSpec.PipelineStep
All Implemented Interfaces:
Serializable, Comparable<EnvironmentSpec.PipelineStep>, Constable
Enclosing class:
EnvironmentSpec

public static enum EnvironmentSpec.PipelineStep extends Enum<EnvironmentSpec.PipelineStep>
流水线步骤:平台差异的表达处.

把「Fabric 直接 remap」与「Forge 先补丁、再迁移映射、再 remap」的差异收敛成 一份可序列化的步骤列表,而不是散落在各 provider 的 if (isForgeLike()) 里。

  • Enum Constant Details

    • DOWNLOAD_VANILLA

      public static final EnvironmentSpec.PipelineStep DOWNLOAD_VANILLA
      下载 vanilla 制品.
    • MERGE_MINECRAFT

      public static final EnvironmentSpec.PipelineStep MERGE_MINECRAFT
      合并客户端与服务端 jar(仅需要合并的版本配置).
    • APPLY_LOADER_PATCHES

      public static final EnvironmentSpec.PipelineStep APPLY_LOADER_PATCHES
      对 vanilla 应用加载器补丁(Forge / NeoForge).
    • MIGRATE_MAPPINGS

      public static final EnvironmentSpec.PipelineStep MIGRATE_MAPPINGS
      在基础映射之上做平台特有的映射迁移(仅 Forge 系,且依赖上一步的产物).
    • REMAP_MINECRAFT

      public static final EnvironmentSpec.PipelineStep REMAP_MINECRAFT
      重映射到目标命名空间.
    • PROCESS_PROJECT_JAR

      public static final EnvironmentSpec.PipelineStep PROCESS_PROJECT_JAR
      应用项目级处理(AW / AT / 接口注入).
  • Method Details

    • values

      public static EnvironmentSpec.PipelineStep[] 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 EnvironmentSpec.PipelineStep 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