public class MapCheckerScriptChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements MapValidator<G,A,R>
| Modifier and Type | Field and Description |
|---|---|
static @NotNull java.lang.String |
MAP_PLACEHOLDER
The placeholder in the command's arguments for the map to check.
|
static @NotNull java.lang.String |
REAL_MAP_PLACEHOLDER
The placeholder in the command's arguments for the real map path.
|
| Constructor and Description |
|---|
MapCheckerScriptChecker(@NotNull ValidatorPreferences validatorPreferences,
@NotNull MapWriter<G,A,R> mapWriter,
@NotNull java.lang.String[] args)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validateMap(@NotNull MapModel<G,A,R> mapModel,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validate a map.
|
getKey, isDefaultEnabled, isEnabled, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKey, isDefaultEnabled, isEnabled, setEnabled@NotNull public static final @NotNull java.lang.String MAP_PLACEHOLDER
@NotNull public static final @NotNull java.lang.String REAL_MAP_PLACEHOLDER
public MapCheckerScriptChecker(@NotNull
@NotNull ValidatorPreferences validatorPreferences,
@NotNull
@NotNull MapWriter<G,A,R> mapWriter,
@NotNull
@NotNull java.lang.String[] args)
validatorPreferences - the validator preferences to usemapWriter - the map writer for saving temporary map filesargs - the command to execute and the arguments to passpublic void validateMap(@NotNull
@NotNull MapModel<G,A,R> mapModel,
@NotNull
@NotNull ErrorCollector<G,A,R> errorCollector)
MapValidatorvalidateMap in interface MapValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>mapModel - Map to validateerrorCollector - Error collector to report errors to