public abstract class MappingsLoader extends java.lang.Object implements MappingsProvider
| Constructor and Description |
|---|
MappingsLoader(java.io.File file) |
MappingsLoader(java.io.InputStream inputStream) |
MappingsLoader(java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
Mappings |
getMappings()
Get and load the mappings if they are not loaded yet.
|
Mappings |
load()
Load the mappings from the provided source if not already loaded.
|
protected abstract Mappings |
load(java.util.List<java.lang.String> lines)
Load the mappings from the provided lines.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopying, copyMappings, direct, empty, getMetaMappings, withMappings, withMetaMappingspublic MappingsLoader(@WillClose
java.io.InputStream inputStream)
public MappingsLoader(java.io.File file)
public MappingsLoader(java.nio.file.Path path)
public Mappings getMappings()
RuntimeException.getMappings in interface MappingsProviderpublic final Mappings load() throws java.lang.Throwable
java.lang.Throwable - If an error occurs while loading the mappingsprotected abstract Mappings load(java.util.List<java.lang.String> lines) throws java.lang.Throwable
lines - The mappings linesjava.lang.Throwable - If an error occurs while loading the mappings