public final class CommodoreFileFormat extends Object
This class provides a means to parse these files into real CommandNodes.
| Modifier and Type | Field and Description |
|---|---|
static me.lucko.commodore.file.CommodoreFileReader |
READER |
| Modifier and Type | Method and Description |
|---|---|
static <S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(File file)
Parses a
LiteralCommandNode from a commodore file. |
static <S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(InputStream inputStream)
Parses a
LiteralCommandNode from a commodore file. |
static <S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(Path path)
Parses a
LiteralCommandNode from a commodore file. |
static <S> com.mojang.brigadier.tree.LiteralCommandNode<S> |
parse(Reader reader)
Parses a
LiteralCommandNode from a commodore file. |
public static <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 fileCommodoreFileReader.parse(Reader)public static <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 fileCommodoreFileReader.parse(InputStream)public static <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 fileCommodoreFileReader.parse(Path)public static <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 fileCommodoreFileReader.parse(File)Copyright © 2020. All rights reserved.