Package net.fabricmc.lorenztiny
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
ConstructorsConstructorDescriptionTinyMappingsReader(net.fabricmc.mappingio.tree.MappingTree tree, String from, 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
read
-
Constructor Details
-
TinyMappingsReader
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:
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()
-