Enum Class MappingOption

java.lang.Object
java.lang.Enum<MappingOption>
dev.architectury.loom.mappings.MappingOption
All Implemented Interfaces:
Serializable, Comparable<MappingOption>, Constable

public enum MappingOption extends Enum<MappingOption>
  • Enum Constant Details

    • DEFAULT

      public static final MappingOption DEFAULT
    • WITH_SRG

      public static final MappingOption WITH_SRG
    • WITH_MOJANG

      public static final MappingOption WITH_MOJANG
    • WITH_SRG_INHERITED

      public static final MappingOption WITH_SRG_INHERITED
      补全了「实现类缺失的继承方法条目」的 srg tiny(仅 legacy Forge 有).

      与 WITH_SRG 分开是必须的:WITH_SRG 在配置期还要被读成映射树 (srgNamedTree / LorenzMappingService),而本选项的产物由执行期任务产出、 配置期必然不存在。只把它用在「重映射 Minecraft jar」这条执行期路径上。

      非 legacy Forge 形态下本选项未注册,取用会抛 UnsupportedOperationException。

  • Method Details

    • values

      public static MappingOption[] 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 MappingOption 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
    • forPlatform

      public static MappingOption forPlatform(LoomGradleExtensionAPI extension)