Record Class AccessTransformerRuleTranslator.Input

java.lang.Object
java.lang.Record
dev.architectury.loom.forge.AccessTransformerRuleTranslator.Input
Record Components:
rules - 原始 AT 规则行(含注释行与空行,原样传入)
mappings - 映射树
sourceNamespace - 规则当前的命名空间(legacy Forge 为 srg)
targetNamespace - 目标 jar 所在的命名空间(notch jar 为 official)
hierarchy - 类继承关系;为 null 时不做继承回退(只有直接成员能翻译)
Enclosing class:
AccessTransformerRuleTranslator

public static record AccessTransformerRuleTranslator.Input(List<String> rules, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace, String targetNamespace, @Nullable AccessTransformerRuleTranslator.ClassHierarchy hierarchy) extends Record
一次翻译所需的全部输入.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rules

      public List<String> rules()
      Returns the value of the rules record component.
      Returns:
      the value of the rules record component
    • mappings

      public net.fabricmc.mappingio.tree.MappingTree mappings()
      Returns the value of the mappings record component.
      Returns:
      the value of the mappings record component
    • sourceNamespace

      public String sourceNamespace()
      Returns the value of the sourceNamespace record component.
      Returns:
      the value of the sourceNamespace record component
    • targetNamespace

      public String targetNamespace()
      Returns the value of the targetNamespace record component.
      Returns:
      the value of the targetNamespace record component
    • hierarchy

      public @Nullable AccessTransformerRuleTranslator.ClassHierarchy hierarchy()
      Returns the value of the hierarchy record component.
      Returns:
      the value of the hierarchy record component