Package xyz.calcugames.levelz.parser
Class LevelParser.Builder
java.lang.Object
xyz.calcugames.levelz.parser.LevelParser.Builder
- Enclosing class:
- LevelParser
Represents a Level Parser Builder.
-
Method Summary
Modifier and TypeMethodDescription@NotNull LevelParser
build()
Builds the parser.Sets the input for this parser.input
(@NotNull InputStream inputStream) Sets the input for this parser.@NotNull LevelParser.Builder
Sets the logger for the parser.@NotNull LevelParser.Builder
Sets the randomizer seed for this parser.
-
Method Details
-
seed
Sets the randomizer seed for this parser.- Parameters:
seed
- Seed- Returns:
- this class, for chaining
-
input
Sets the input for this parser.- Parameters:
inputStream
- Input Stream- Returns:
- this class, for chaining
-
input
Sets the input for this parser.- Parameters:
file
- File to read- Returns:
- this class, for chaining
-
logger
Sets the logger for the parser.- Parameters:
logger
- Logger- Returns:
- this class, for chaining
-
build
Builds the parser.- Returns:
- Level Parser
-