Class MapDifficultyError<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Constructor Detail

      • MapDifficultyError

        public MapDifficultyError​(@NotNull
                                  @NotNull MapModel<G,​A,​R> mapModel,
                                  int difficulty)
        Creates a new instance.
        Parameters:
        mapModel - the map on which the error occurred
        difficulty - difficulty which was wrong
    • Method Detail

      • getDifficulty

        public int getDifficulty()
        Returns the difficulty that was wrong.
        Returns:
        the difficulty that was wrong
      • getParameter

        @Nullable
        public @Nullable java.lang.String getParameter​(int id)
        Description copied from class: ValidationError
        Returns a parameter string to be used in the error message. It can be accessed with {4+id}.
        Specified by:
        getParameter in class ValidationError<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
        Parameters:
        id - the error id
        Returns:
        the error string