public class CommodoreFileReader extends Object
This class provides a means to parse these files into real CommandNodes.
| Modifier and Type | Class and Description |
|---|---|
static class |
CommodoreFileReader.Builder
Builder for
CommodoreFileReader. |
| Modifier and Type | Field and Description |
|---|---|
static CommodoreFileReader |
INSTANCE
A default instance of
CommodoreFileReader. |
| Modifier and Type | Method and Description |
|---|---|
static CommodoreFileReader.Builder |
builder()
Creates a new
CommodoreFileReader builder. |
<S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(File file)
Parses a
LiteralCommandNode from a commodore file. |
<S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(InputStream inputStream)
Parses a
LiteralCommandNode from a commodore file. |
<S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(Path path)
Parses a
LiteralCommandNode from a commodore file. |
<S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(Reader reader)
Parses a
LiteralCommandNode from a commodore file. |
public static final CommodoreFileReader INSTANCE
CommodoreFileReader.public static CommodoreFileReader.Builder builder()
CommodoreFileReader builder.public <S> com.mojang.brigadier.tree.LiteralCommandNode<S> parse(Reader reader) throws IOException
LiteralCommandNode from a commodore file.S - the command node sender typereader - a reader for the fileIOException - if an error occurs whilst reading the fileRuntimeException - if an error occurs whilst lexing or parsing the filepublic <S> com.mojang.brigadier.tree.LiteralCommandNode<S> parse(InputStream inputStream) throws IOException
LiteralCommandNode from a commodore file.S - the command node sender typeinputStream - an inputStream for the fileIOException - if an error occurs whilst reading the fileRuntimeException - if an error occurs whilst lexing or parsing the filepublic <S> com.mojang.brigadier.tree.LiteralCommandNode<S> parse(Path path) throws IOException
LiteralCommandNode from a commodore file.S - the command node sender typepath - the path to the fileIOException - if an error occurs whilst reading the fileRuntimeException - if an error occurs whilst lexing or parsing the filepublic <S> com.mojang.brigadier.tree.LiteralCommandNode<S> parse(File file) throws IOException
LiteralCommandNode from a commodore file.S - the command node sender typefile - the fileIOException - if an error occurs whilst reading the fileRuntimeException - if an error occurs whilst lexing or parsing the file