Package net.fabricmc.lorenztiny
Class TinyMappingsReader
java.lang.Object
org.cadixdev.lorenz.io.MappingsReader
net.fabricmc.lorenztiny.TinyMappingsReader
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class TinyMappingsReader
extends org.cadixdev.lorenz.io.MappingsReader
A
mappings reader for Fabric's Tiny
format.- Since:
- 2.0.0
- See Also:
TinyMappingFormat
-
Constructor Summary
Constructors Constructor Description TinyMappingsReader(net.fabricmc.mapping.tree.TinyTree tree, java.lang.String from, java.lang.String to)Creates a new mappings reader for Fabric's Tiny format, from atiny tree. -
Method Summary
Methods inherited from class org.cadixdev.lorenz.io.MappingsReader
readMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TinyMappingsReader
public TinyMappingsReader(net.fabricmc.mapping.tree.TinyTree tree, java.lang.String from, java.lang.String to)Creates a new mappings reader for Fabric's Tiny format, from atiny tree.The resulting
mapping setwill 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 fromfrom- The namespace to use in the tiny file, as Lorenz's obfuscated namesto- The namespace to use in the tiny file, as Lorenz's de-obfuscated names- Throws:
java.lang.IllegalArgumentException- if thefromortonamespace is not present in the tiny tree
-
-
Method Details
-
read
public org.cadixdev.lorenz.MappingSet read(org.cadixdev.lorenz.MappingSet mappings)- Specified by:
readin classorg.cadixdev.lorenz.io.MappingsReader
-
close
public void close()
-