Class TinyMappingsReader

java.lang.Object
org.cadixdev.lorenz.io.MappingsReader
net.fabricmc.lorenztiny.TinyMappingsReader
All Implemented Interfaces:
Closeable, AutoCloseable

public class TinyMappingsReader extends org.cadixdev.lorenz.io.MappingsReader
A mappings reader for Fabric's Tiny format.
Since:
2.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TinyMappingsReader(net.fabricmc.mappingio.tree.MappingTree tree, String from, String to)
    Creates a new mappings reader for Fabric's Tiny format, from a tiny tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.cadixdev.lorenz.MappingSet
    read(org.cadixdev.lorenz.MappingSet mappings)
     

    Methods inherited from class org.cadixdev.lorenz.io.MappingsReader

    read

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TinyMappingsReader

      public TinyMappingsReader(net.fabricmc.mappingio.tree.MappingTree tree, String from, String to)
      Creates a new mappings reader for Fabric's Tiny format, from a tiny tree.

      The resulting mapping set will have mappings using the from namespace (as the obfuscated names in Lorenz) to the to namespace (as the de-obfuscated names in Lorenz).

      Parameters:
      tree - The Tiny mappings tree to create mappings from
      from - The namespace to use in the tiny file, as Lorenz's obfuscated names
      to - The namespace to use in the tiny file, as Lorenz's de-obfuscated names
      Throws:
      IllegalArgumentException - if the from or to namespace is not present in the tiny tree
  • Method Details

    • read

      public org.cadixdev.lorenz.MappingSet read(org.cadixdev.lorenz.MappingSet mappings)
      Specified by:
      read in class org.cadixdev.lorenz.io.MappingsReader
    • close

      public void close()