public class BlockedSpawnPointChecker<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>
MapValidator
to assert that mobs or spawn points aren't on blocked
squares.Constructor and Description |
---|
BlockedSpawnPointChecker(@NotNull ValidatorPreferences validatorPreferences,
java.lang.Integer... typeNumbers)
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, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public BlockedSpawnPointChecker(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull java.lang.Integer... typeNumbers)
validatorPreferences
- the validator preferences to usetypeNumbers
- the object types to checkpublic void validateMap(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)
MapValidator
validateMap
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