Package dev.architectury.loom.mappings
Enum Class MappingOption
- All Implemented Interfaces:
Serializable,Comparable<MappingOption>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription补全了「实现类缺失的继承方法条目」的 srg tiny(仅 legacy Forge 有). -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingOptionforPlatform(LoomGradleExtensionAPI extension) static MappingOptionReturns the enum constant of this class with the specified name.static MappingOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
WITH_SRG
-
WITH_MOJANG
-
WITH_SRG_INHERITED
补全了「实现类缺失的继承方法条目」的 srg tiny(仅 legacy Forge 有).与
WITH_SRG分开是必须的:WITH_SRG在配置期还要被读成映射树 (srgNamedTree/LorenzMappingService),而本选项的产物由执行期任务产出、 配置期必然不存在。只把它用在「重映射 Minecraft jar」这条执行期路径上。非 legacy Forge 形态下本选项未注册,取用会抛
UnsupportedOperationException。
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
forPlatform
-