Class LevelParser.Builder

java.lang.Object
xyz.calcugames.levelz.parser.LevelParser.Builder
Enclosing class:
LevelParser

public static final class LevelParser.Builder extends Object
Represents a Level Parser Builder.
  • Method Details

    • seed

      @NotNull public @NotNull LevelParser.Builder seed(@NotNull @NotNull Random seed)
      Sets the randomizer seed for this parser.
      Parameters:
      seed - Seed
      Returns:
      this class, for chaining
    • input

      public LevelParser.Builder input(@NotNull @NotNull InputStream inputStream)
      Sets the input for this parser.
      Parameters:
      inputStream - Input Stream
      Returns:
      this class, for chaining
    • input

      public LevelParser.Builder input(@NotNull @NotNull File file)
      Sets the input for this parser.
      Parameters:
      file - File to read
      Returns:
      this class, for chaining
    • logger

      @NotNull public @NotNull LevelParser.Builder logger(@NotNull @NotNull Logger logger)
      Sets the logger for the parser.
      Parameters:
      logger - Logger
      Returns:
      this class, for chaining
    • build

      @NotNull public @NotNull LevelParser build()
      Builds the parser.
      Returns:
      Level Parser