public class BlockedMobOrSpawnPointChecker<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractValidator<G,A,R> implements SquareValidator<G,A,R>
Constructor and Description |
---|
BlockedMobOrSpawnPointChecker(ValidatorPreferences validatorPreferences,
java.lang.Integer... typeNumbers)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateSquare(MapSquare<G,A,R> mapSquare,
ErrorCollector<G,A,R> errorCollector)
Validate a map square.
|
getKey, isDefaultEnabled, isEnabled, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getKey, isDefaultEnabled, isEnabled, setEnabled
public BlockedMobOrSpawnPointChecker(@NotNull ValidatorPreferences validatorPreferences, @NotNull java.lang.Integer... typeNumbers)
validatorPreferences
- the validator preferences to usetypeNumbers
- The object types to check.public void validateSquare(@NotNull MapSquare<G,A,R> mapSquare, @NotNull ErrorCollector<G,A,R> errorCollector)
validateSquare
in interface SquareValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
mapSquare
- Square to validateerrorCollector
- Error collector to report errors to